On Mon, Jul 15, 2013 at 10:55:59PM +0200, Lennart Poettering wrote:
> If I grok correctly what you are asking for, you are actually looing for
> an ExecRestartPre=, not an ExecStopPre=. You want somthing that is run
> before we stop a service when we intend to restart it. But when we
> shutdown the system and stop the service for that, or if the user wants
> to stop it manually, we shouldn't run it, correct?
> 
> If that's what you want, then yes, it is on the TODO list to add
> something like this, but ExecStopPre= is not what you want, it would
> have very different semantics.

Possibly related question: Is there a way to start a daemon with
different options on restart than on start, something like
ExecRestart?

This would allow restarting chronyd with the -r option to load old
samples and speed up the initial synchronization.

-- 
Miroslav Lichvar
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to