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

Michael Biebl biebl at debian.org
Mon Nov 3 13:19:07 UTC 2014


Hi Sandro,

Am 03.11.2014 um 14:07 schrieb Sandro Tosi:
> what is the recommended way to identify sysvinit? 

I don't think there is. I'd simply assume sysvinit is the active init if
the tests for upstart and systemd fail.

from the info
> provided above one requires to check a dir existence and the checking
> a command and then execute it to parse its output. it seems a bit
> fragile, and maybe only upstart check really the running processes

The systemd system runtime directory is only created when systemd is the
active PID 1. Could you elaborate why you think this approach is
fragile? If those two tests (for systemd and upstart) would be brittle,
we'd have a problem, since they are used all over the place.



-- 
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: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20141103/f3b0e65b/attachment.sig>


More information about the Reportbug-maint mailing list