[systemd-devel] lighttp unit - graceful reload of configfiles by sending signal to $MAINPID

Lennart Poettering lennart at poettering.net
Mon Jan 17 15:50:34 PST 2011


On Tue, 11.01.11 17:30, Marius Tolzmann (tolzmann at molgen.mpg.de) wrote:

> >>At last: Isn't that something lighttpd should take care off? Or the
> >>user should test before issuing a reload? Or a small script can do?
> >
> >Isn't one of the points of systemd to eliminate such small scripts?
> 
> Mirkos ExecConfigTest= idea seems to solve this issue perfectly..
> what i really like: now the configtest-procedure only has to be
> defined once.. and so your unit file will be more readable compared
> to the very first version..

If ExecReload= is fixed to allow multiple lines without crashing, and
also doesn't shut down the service if a reload command fails then
you will not need ExecConfigTest, correct?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list