How to get the list of daemons and theirs statuses (stopped, running, crashed, etc) for each runlevel? Like rc-status in gentoo.
Asked
Active
Viewed 8.9k times
23
zerkms
- 1,462
- 5
- 18
- 28
1 Answers
34
Run service --status-all to get a list off all the Upstart services and their status. (It basically issues a status command for all the services.)
Egil
- 14,002
- 2
- 45
- 54
-
6I think ```service --status-all``` is for sysvinit managed daemons (as the service command comes from the sysvinit-utils package). The ones managed by Upstart can be seen with ```initctl list``` – yuvilio Jul 24 '12 at 18:28
-
3`initctl list` seems better because it list out all, where some not in `service --status-all`. Eg. dovecot, vsftpd etc. @yuvilio if you post as answer i would definitely +1 it. – checksum Apr 25 '16 at 13:28
-
4I have Ubuntu 18.04.4 TLS and initctl doesn't seem to be installed. Was this replaced by something? – Rob Mar 11 '20 at 13:39