Systemd service life cycle
Ralf Mardorf
silver.bullet at zoho.com
Thu Apr 7 08:17:13 UTC 2016
On Thu, 7 Apr 2016 08:43:47 +0100, Colin Law wrote:
>This leads me to think that A is defined as Started once ExecStart has
>been called, but only guarantees that the script has been initiated,
>not that it has actually accomplished anything.
Systemd is known for race conditions. I would let a wrapper B check
against A being ready.
>If I am correct then I think I should put the tunnel setup in
>ExecStartPre.
"Note that ExecStartPre= may not be used to start long-running
processes. All processes forked off by processes invoked via
ExecStartPre= will be killed before the next service process is run." -
https://www.freedesktop.org/software/systemd/man/systemd.service.html
More information about the ubuntu-users
mailing list