6 Nov
2012
6 Nov
'12
4:03 a.m.
On Mon, Nov 05, 2012 at 08:22:33PM +0100, coderkun wrote:
Am Montag, den 05.11.2012, 18:22 +0000 schrieb P .NIKOLIC:
How do i check to see if it is systemd or not
$ printf "%d" `systemd-notify --booted`
systemd-notify doesn't print anything. If you really want to print something: $ systemd-notify --booted && echo "booted on systemd" or $ systemd-notify --booted; echo $?
man systemd-notify: “[…] --booted Returns 0 if the system was booted up with systemd, non-zero otherwise. […]”
Note the "returns", not "prints". d