By Alvin Alexander. Last updated: June 6, 2016
To see which services are configured to run at startup on a Rasperry Pi (Raspian) — and also see their current startup status — issue this Linux service
command:
sudo service --status-all
The service
man page describes what this command does:
service --status-all runs all init scripts, in alphabetical order, with the status command
On my Raspberry Pi (RPI) that command produces a long list of output that looks like this:
[ ? ] alsa-utils [ - ] bootlogs [ ? ] bootmisc.sh [ ? ] cgroup-bin [ ? ] checkfs.sh [ ? ] checkroot-bootclean.sh [ - ] checkroot.sh [ - ] console-setup [ + ] cron [ + ] dbus [ ? ] dphys-swapfile [ ? ] fake-hwclock [ - ] hostname.sh [ ? ] hwclock.sh
The symbols between the brackets are read like this:
+
means the service is running-
means the service is not running?
means the service does not allow status as a command
In a related note, the runlevel command shows the current “run level” of your system:
$ runlevel N 2
That output shows that the system is running at Run Level 2. The /etc/inittab file shows the meaning of the run levels:
# Runlevel 0 is halt. # Runlevel 1 is single-user. # Runlevels 2-5 are multi-user. # Runlevel 6 is reboot.
In summary, if you wanted to see which of your RPI/Linux services are currently running (or not running) I hope this is helpful. Please see the page I linked to for more information.