154

I know about the update-rc.d SERVICE OPTIONS command to add and remove services from startup, but how do I use it to get a list of all the services that are currently configured to start at startup?

Is there some other way to get this list?

Lance Roberts
  • 4,007
  • 4
  • 24
  • 28

2 Answers2

241

See the attached link.

UbuntuBootupHowto

The command is

service --status-all
Avinash Raj
  • 77,204
  • 56
  • 214
  • 254
Justin Andrusk
  • 4,036
  • 2
  • 19
  • 19
  • 1
    Thanks, the `service --status-all` did it, though I still have to find a legend to determine exactly what those symbols mean. – Lance Roberts Aug 20 '11 at 01:02
  • @Lance: there is a bug in managing option `--status-all`, see this AU question: http://askubuntu.com/questions/55992/running-services – enzotib Aug 20 '11 at 10:47
  • 1
    I realize this is a little dated, but from my reading of the man page, it sounds as if this lists the current status, not whether they're configured to start? "service --status-all runs all init scripts, in alphabetical order, with the status command. This option only calls status for sysvinit jobs, upstart jobs can be queried in a similar manner with initctl list'." – ernie Nov 05 '13 at 22:33
  • 2
    List of pretty much everything relevant that is running `initctl list | egrep -v " stop/waiting|^tty" ; service --status-all 2>&1 | egrep -v "\[ (\?|\-) \]"` – kert Mar 21 '15 at 20:47
  • 23
    `+` = running, `-` = stopped service. `?` = managed by upstart (run `initctl list` to get the status of these) – dave1010 Apr 28 '15 at 09:36
  • Does anyone know how to pipe this to less or a file? Using `service --status-all > myfile.txt 2&>1` writes a few lines to the file, and leaves the rest as output on the terminal. I can't grep the output either. – Tyler Collier Jun 18 '15 at 13:54
  • This lists the services that *have been started*, not the services that *will be started upon booting the server* which is what the original question asks for. – Reinier Post May 08 '17 at 15:18
  • Does this require `systemd`? – Aaron Franke Apr 29 '19 at 05:21
8

You could use BUM.

enter image description here

desgua
  • 32,669
  • 9
  • 99
  • 120