If I run the command "service --status-all", each (running?) service is listed in column format. The first column has either a [ ? ], [ + ], or [ - ] before the service name. What does this column represent? What does ?, +, and - mean?
Sorry if this is a simple question. I searched online for ~30 minutes before just coming here and asking.
I even found this: What do the symbols in service --status-all mean? where the "correct" answer states "It draws a [ + ] or [ - ] depending on whether the exit status was zero or nonzero, respectively.".
So, I guess my new question is what does status zero and nonzero(!?!?!) mean?
sudo service --status-all 2>&1 | grep ssh
outputs[ - ] ssh
even when I run this command from SSH? Or whysudo service --status-all 2>&1 | grep lightdm
outputs[ ? ] lightdm
whensudo service lightdm status
works like a charm? – Radu Rădeanu Mar 20 '14 at 18:18/etc/init.d
issue. On my serially upgraded computer,/etc/init.d/ssh status; echo $?
shows non-zero (bad, not running) andinitctl list
doesn't show SSH. On my 14.04 boxinitctrl
does show SSH butservice
still can't read the status. Also remember thatinitctrl
works for Upstart andservice
is part ofsysvinit-utils
. It's not the clearest of pictures but I think that might go some way to explain some of the quirks. I'm sure the move to systemd will clear everything up D: – Oli Mar 20 '14 at 23:19