On Tue, Nov 9, 2010 at 9:06 AM, Nelson A. de Oliveira <nao...@debian.org> wrote:
> Sometimes 2ping "fails" to start in daemon mode. With it stoped:
>
> # /etc/init.d/2ping start
> Starting 2ping listener : 2ping failed!
> # /etc/init.d/2ping start
> Starting 2ping listener : 2ping apparently already running.
>
> And indeed, it's running and listening on port 15998, as expected.
> It's not reproducible every time, but if it helps, the init script
> output (run with "set -x") is attached (both when it failed and when it
> succeeded).

Hmm, it could be a race condition with start-stop-daemon exiting
before the 2ping process it forks shows up in /proc.  Could you try
uncommenting this toward the top:

#TWOPINGD_STARTTIME=2

and see if you can reproduce?  If that's the case, I'll modify the
initscript to go "start -> check -> maybe(sleep -> check)" because I
don't like the current logic with TWOPINGD_STARTTIME enabled: "start
-> sleep -> check". (Why arbitrarily wait and slow down the user's
boot time?)

Thanks for the report
RF



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to