‘service –status-all’의 출력을 해석하는 방법 옵션이 표시되어 실행중인 모든 서비스의

service 명령의 man 페이지에는 –status-all 옵션이 표시되어 실행중인 모든 서비스의 상태를 확인할 수 있습니다.

그러나 명령을 실행할 때 첫 번째 열에는-,? 또는 + 예

[ - ]  postfix
[ + ]  postgresql-8.4
[ ? ]  pppd-dns

첫 번째 열의 중요성을 알 수있는 곳이 있습니까? 우분투 10.10을 실행 중입니다.



답변

  • [?] means the service status isn’t known (the init file does not output a status)
  • [+] means the service is running
  • [-] means the service is not running

There is probably an authoritative source, but I got it from looking at the /usr/sbin/service script.