23

How to get the list of daemons and theirs statuses (stopped, running, crashed, etc) for each runlevel? Like rc-status in gentoo.

zerkms
  • 1,472

1 Answers1

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,162
  • 6
    I 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
  • 4
    I 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