[systemd-devel] ExecStartPre checking conf

Olaf van der Spek ml at vdspek.org
Mon May 20 09:15:33 UTC 2019


On Sun, May 19, 2019 at 12:26 PM Reindl Harald <h.reindl at thelounge.net> wrote:
> Am 19.05.19 um 11:45 schrieb Olaf van der Spek:
> > ExecStartPre is sometimes used to check the configuration. Does this make sense?
> > It seems this causes a lot of code to run twice, as the configuration
> > is checked on the real invocation anyway.
>
> in my opinion not really
>
> it could be useful if would be a "ExecRestartPre" to prevent the stop
> action in case of a syntax error but if the unit fail because of
> ExecStartPew or a failure of ExecStart don't make much difference

But ExecRestartPre doesn't exist does it?


-- 
Olaf


More information about the systemd-devel mailing list