systemctl: make "systemctl is-system-running" return "offline" if we are not booted...
authorLennart Poettering <lennart@poettering.net>
Wed, 23 Sep 2015 15:04:43 +0000 (17:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2015 19:55:51 +0000 (21:55 +0200)
commit94f099d8132da7987a5dbe930dadf31aaded9a11
tree55ac5bf23000aa149f905f0614398ea2a0eb84a6
parent16f98462a0bfd10862e73582a8ad70288d39132f
systemctl: make "systemctl is-system-running" return "offline" if we are not booted with systemd

This sounds like the better place to expose this than in "systemd-notify
--booted".

Also document the so far undocumented "unknown" state the command might
return. And rearrange the table of states documented to be more like the
one for "is-running".

Also, don't document the precise exit code of this function, just say
errors are reported != 0 or > 0...
man/systemctl.xml
man/systemd-notify.xml
src/systemctl/systemctl.c