View previous topic :: View next topic |
Author |
Message |
emarti20 n00b
Joined: 21 Sep 2004 Posts: 2
|
Posted: Tue Sep 21, 2004 2:46 am Post subject: start-stop-daemon after process crash |
|
|
I'm using the start-stop-daemon to control my home automation software. 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 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/mh.pid |
|
Back to top |
|
|
PowerFactor Veteran
Joined: 30 Jan 2003 Posts: 1693 Location: out of it
|
Posted: Tue Sep 21, 2004 3:09 am Post subject: |
|
|
Try using the zap option. I dont' know if you can use that directly with start-stop-daemon of if it only works in the init scripts. |
|
Back to top |
|
|
emarti20 n00b
Joined: 21 Sep 2004 Posts: 2
|
Posted: Tue Sep 21, 2004 3:24 am Post subject: Solved |
|
|
Thanks, /etc/init.d/mh.rc zap worked great. |
|
Back to top |
|
|
|