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

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

 ❦ 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.
Instrument your programs.  Measure before making "efficiency" changes.
            - The Elements of Programming Style (Kernighan & Plauger)

Attachment: signature.asc
Description: PGP signature

Reply to: