Running services
Is there a way to get precise list of services with "is running"/"is not running" statuses specified.
service --status-all
outputs more than 30 ?
services.
Why is that output is so not informative? Is it that difficult to determine if service is running or not? And how to get the exact statuses for all services?
zerkms@ubuntu-server-11:~$ sudo service --status-all 2>&1|grep cron
[ ? ] cron
zerkms@ubuntu-server-11:~$ sudo service cron status
cron start/running, process 804
It seems a bug in the service
script. Changing the grep pattern in line 77 with this gives better results:
"\(^\|\W\)status)"
Edit
Found a bug report in Debian on this. A patch is available, functionally equivalent to what I write above: service doesn't correctly parse "cron" init.d. Launchpad do not recognize the project sysvinit-utils
.