[Reportbug-maint] Bug#741930: reportbug: add current init system information

Michael Biebl biebl at debian.org
Sat Mar 22 00:49:37 UTC 2014


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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20140322/dbbb7866/attachment.sig>


More information about the Reportbug-maint mailing list