How do interpret the output of 'service --status-all'

10

2

The man page of the service command lists the --status-all option so that you can check the status of all running services.

However when I run the command the first column can contain -, ? or + e.g.

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

Is there some place where I can find out the significance of the first column ? I'm running ubuntu 10.10

Philip Clarke

Posted 2011-12-14T11:50:31.487

Reputation: 233

Answers

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.

Paul

Posted 2011-12-14T11:50:31.487

Reputation: 52 173

2thanks, I didn't realise it was just a shell script – Philip Clarke – 2011-12-15T16:24:41.583