Salvatore Bonaccorso <car...@debian.org> writes:

> On Tue, May 17, 2016 at 04:45:35PM +0200, Ferenc W??gner wrote:
> 
>> This bug really hurts our jessie systems.  Can we expect a stable
>> update with the fix?
>
> Attached is a proposed debdiff, as with the patch used for the
> unstable uplaod.

I can confirm that it works as intended.  To make the issue easily
reproducible, I inserted a sleep(3) call at the start of the exit
handler.  With the original init script service nslcd stop returns
immediately (and removes the pid file) while the daemon is still
running.  If a new daemon is started before the previous one terminates,
the exit handler removes the pid file and the socket of the new daemon.
As I understand it, systemctl has no separate "restart" action, but
translates that into stop+start, thus service nslcd restart is racy
under systemd but works fine under SysV init.  With the proposed patch,
however, the stop action of the init script does not return immediately
but waits for the daemon to terminate, thus fixing the restart action
under systemd.  Please make this update happen.
-- 
Thanks,
Feri

Reply via email to