[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RFH: start-stop-daemon, broken behavior when daemon already running


Could you help to understand why start-stop-daemon do not return 1 when
trying to start my daemon which is already running ?

Here is some log about what happens:

bash-3.1# start-stop-daemon --start --quiet --pidfile
/var/run/dkimproxy.out-dkim.pid --exec /usr/local/bin/dkimproxy.out --
--daemonize --keyfile=/etc/dkimproxy/private.key --selector=selector1
--domain=le-vert.net --method=relaxed --signature=dkim
--pidfile=/var/run/dkimproxy.out-dkim.pid; echo $?
Becoming sub class of "Net::Server::PreFork"
Pid_file already exists for running process (16640)... aborting

bash-3.1# cat /var/run/dkimproxy.out-dkim.pid

bash-3.1# ps aux | grep 16640
root     16640  0.0  1.0  13732  8420 ?        Ss   23:49   0:00
/usr/bin/perl -I/usr/local/lib /usr/local/bin/dkimproxy.out --daemonize
--keyfile=/etc/dkimproxy/private.key --selector=selector1
--domain=le-vert.net --method=relaxed --signature=dkim
root     16697  0.0  0.0   3540   760 pts/1    R+   23:49   0:00 grep 16640

Thanks in advance,

Regards, Adam.

Reply to: