[Dibbler] dibbler daemon connections
thomson at klub.com.pl
Fri Mar 29 10:35:47 CET 2013
On 26.03.2013 11:39, Dick Middleton wrote:
> On 03/25/13 12:58, Dick Middleton wrote:
>> Also when I do 'dibbler-client stop' to client daemon it just hangs waiting.
> What does 'dibbler-client stop' actually do?
> I can fix this problem by modifying the 'stop' stanza in
> /etc/init.d/dibbler-client (origin Debian linux) to issue 'kill -TERM ' for
> the stop argument rather than 'dibbler-client stop' as it is.
> If 'dibbler-client stop' really is invoking the init script it's perhaps a bit
> recursive :-)
It's a bit messy. If you do this:
kill `cat /var/lib/dibbler/server.pid'
You'd get a race condition. kill command returns immediately and the
server may take around 2 seconds to shut down. If you try to start
another instance immediately, it will fail at some point.
That's why the stop command was implemented. It sends the signal and
then is supposed to wait for the process to terminate and then exit.
Unfortunately, this code has a bug. Fortunately, it has been fixed
Jean-Jacques was kind enough to provide a patch for this, which has been
accepted. I've merged it to git today. Can you try if the latest git
code works for you? I can't verify it myself, because it always worked
on my box and never had any issues. If you're interested in details, the
bug for this issue is #268
(http://klub.com.pl/bugzilla3/show_bug.cgi?id=268). If this fixes your
problem, make sure you say so in the bug comment.
More information about the Dibbler