[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to check for other init systems from sysvinit script



 ❦ 30 mai 2013 23:07 CEST, Steve Langasek <vorlon@debian.org> :

>> . /lib/lsb/init-functions
>
>> (Which should be near the top of your init script already.)
>> This will automagically invoke systemd or upstart if appropriate.
>
> No, it won't.  What it will do is provide a shell function you can call to
> check if init is upstart, and if so, neuter your init script:
>
>   if init_is_upstart; then
>     exit 1
>   fi
>
> Doing this automatically by including /lib/lsb/init-functions would be EBW.

What does EBW means? Having the upstart job masks automatically the SysV
init script would be convenient. It works fine for systemd.
-- 
 /* Nobody will ever see this message :-) */
panic("Cannot initialize video hardware\n");
	2.0.38 /usr/src/linux/arch/m68k/atari/atafb.c

Attachment: pgpABVdwAz4q9.pgp
Description: PGP signature


Reply to: