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

Alexander E. Patrakov patrakov at gmail.com
Tue Jan 18 03:41:06 PST 2011


18.01.2011 04:23, Lennart Poettering wrote:
> On Tue, 11.01.11 09:54, Alexander E. Patrakov (patrakov at gmail.com) wrote:
>
>> instances of lighttpd to coexist for some time. See: after SIGINT,
>> the old instance does not listen on port 80, but continues servicing
>> large downloads that are still in progress. The new instance accepts
>> new connections and handles them. The old instance will exit as soon
>> as all old transfers ard completed.
> How is this implemented in detail? Sending SIGINT is async, so at the
> time you start the new instance you cannot be sure that the old instance
> has stopped listening?

Indeed, there is a race here. That's why "/bin/sleep 1" in my initial 
service file.

-- 
Alexander E. Patrakov


More information about the systemd-devel mailing list