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

Re: libsystemd [was: Re: Is missing SysV-init support a bug?]



Vincent Bernat <bernat@debian.org> writes:
>  ❦ 29 août 2016 05:00 CEST, Russ Allbery <rra@debian.org> :

>> upstart supports a similar mechanism via the -Z flag, but it's (IMO) a
>> little less clean: the process sends itself a SIGSTOP when it's ready,
>> and then lets the init system send it a SIGCONT.  This does work, but I
>> don't like it as much; pausing for the init system is awkward, you have
>> to remember to omit the flag when running the daemon manually for
>> debugging

> You can look at the UPSTART_JOB environment variable to determine if you
> are running from Upstart or not.

You can't, really, because it's an environment variable, so it will get
inherited by things run by upstart jobs but that are not themselves
upstart jobs.  It's a 90% solution that fails in edge cases.  (The world
of init systems is full of stuff like that.  It's very frustrating.)

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: