[systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID
lennart at poettering.net
Tue Jan 18 14:39:49 PST 2011
On Tue, 18.01.11 18:00, Alexander E. Patrakov (patrakov at gmail.com) wrote:
> 18.01.2011 04:48, Lennart Poettering wrote:
> >What systemd currently does is:
> > If the reload fails it shutdowns the service and informs you about
> > the failure.
> >What systemd probably should do (and what is now in the TODO list) is:
> > If the reload fails it should leave the service as is but informs
> > you about the failure.
> >That should make it easy to plug in check scripts via the ExecReload
> >directive and make the need of an additional directive unnecessary.
> For the case of reloading, you are right. However, the original idea
> was to run the configuration check also on restart (but not on
> stop). It is not obvious for me how this can work without a new
Hmm, so on restart you want to run the check script before the "stop"
operation is run? Hmm, not sure either how to do that best. I guess for
that we'd have to add ExecRestartPre= or something like that.
Lennart Poettering - Red Hat, Inc.
More information about the systemd-devel