-   Linux - Software (
-   -   start-stop-daemon problems after process crash (

emarti20 09-20-2004 10:59 PM

start-stop-daemon problems after process crash
I'm using the start-stop-daemon to control my home automation software in Gentoo. It's all based in perl and after making changes if there are any coding bugs the process ends after initialization. This causes the start-stop-daemon to think it's still running when it's not. When I try to start again I get an error of "WARNING: "mh.rc" has already been started." The only way I have found to get things going again is a reboot. Somewhere there must be something I can clear to get the start-stop-daemon to know that it is in fact NOT running.

Start command:
start-stop-daemon --start --background --exec /mh/mh/bin/mh -- -log_file="/var/log/mh.log"

Stop command:
start-stop-daemon --stop --quiet --pidfile /var/run/

mikemcdonough 04-10-2005 12:57 PM

start-stop-daemon problems after process crash
I'm having the same problem with start-stop-daemon where a processes errors out with a $? <> 0. Anyone know if this bug has been located?

zeos 04-10-2005 01:02 PM

The pid (process id) file still exists after the crash so the script assumes the process is running ....if it's truely stopped remove /var/run/ and restart it...

mikemcdonough 04-15-2005 09:54 AM

Yea that was the first thing I looked for. The pid file is getting cleaned up when misterhouse exits. something else is preventing stop-start-daemon from restarting.

All times are GMT -5. The time now is 04:10 AM.