21

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

32

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.)

3
  • 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
  • 1
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.