Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
start-stop-daemon after process crash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
emarti20
n00b
n00b


Joined: 21 Sep 2004
Posts: 2

PostPosted: Tue Sep 21, 2004 2:46 am    Post subject: start-stop-daemon after process crash Reply with quote

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
View user's profile Send private message
PowerFactor
Veteran
Veteran


Joined: 30 Jan 2003
Posts: 1693
Location: out of it

PostPosted: Tue Sep 21, 2004 3:09 am    Post subject: Reply with quote

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
View user's profile Send private message
emarti20
n00b
n00b


Joined: 21 Sep 2004
Posts: 2

PostPosted: Tue Sep 21, 2004 3:24 am    Post subject: Solved Reply with quote

Thanks, /etc/init.d/mh.rc zap worked great.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum