On Mon, Aug 11, 2014 at 5:55 PM, Grant Edwards
<grant.b.edwa...@gmail.com> wrote:
>
> Thanks much for the advice.
>

Np.  One other thing is that anybody using journald would probably
appreciate logging to stdout.

Forking with a PIDfile is actually a preferred mode of operation,
since then you know it is ready to accept connections.

Making sure the parent doesn't die is especially important if you do
things like timer units (basically a systemd version of cron).  I
tended to fork off processes from scripts from cron and you can't do
that with systemd unless the parent waits for all the children to
finish.  The better way to do it is just write multiple scripts and
let them start in parallel.  When a parent dies, the unit is
considered done, and all its children are meticulously killed off.

Rich

Reply via email to