Am 21.03.2014 22:19, schrieb Sandro Tosi:

> a proper way to retrieve the init running is provided :)> 

- systemd
The canonical check for systemd being PID 1 is
[ -d /run/systemd/system ]
See also man 3 sd_booted and [0]

- upstart
For upstart the canonical check is defined in /lib/lsb/init-functions as
init_is_upstart() which checks for initctl and parses the output of the
"initctl version"



Michael

[0] http://cgit.freedesktop.org/systemd/systemd/commit/?id=66e411811b8090

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to