From: Rich Freeman <rich0@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: sysV/openrc init script vs. systemd .service file
Date: Mon, 11 Aug 2014 20:43:23 -0400 [thread overview]
Message-ID: <CAGfcS_moQt1yczRNPWSNGmz2Yh3aDyKHk1VjJN-cX6Y5H1VRww@mail.gmail.com> (raw)
In-Reply-To: <lsbe43$guu$1@ger.gmane.org>
On Mon, Aug 11, 2014 at 5:55 PM, Grant Edwards
<grant.b.edwards@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
prev parent reply other threads:[~2014-08-12 0:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-11 20:05 [gentoo-user] sysV/openrc init script vs. systemd .service file Grant Edwards
2014-08-11 21:03 ` Rich Freeman
2014-08-11 21:55 ` [gentoo-user] " Grant Edwards
2014-08-12 0:43 ` Rich Freeman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGfcS_moQt1yczRNPWSNGmz2Yh3aDyKHk1VjJN-cX6Y5H1VRww@mail.gmail.com \
--to=rich0@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox