LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 09-20-2004, 10:59 PM   #1
emarti20
LQ Newbie
 
Registered: May 2004
Posts: 1

Rep: Reputation: 0
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/mh.pid
 
Old 04-10-2005, 12:57 PM   #2
mikemcdonough
LQ Newbie
 
Registered: Jan 2005
Location: North Carolina
Distribution: FC4
Posts: 6

Rep: Reputation: 0
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?
 
Old 04-10-2005, 01:02 PM   #3
zeos
Member
 
Registered: Aug 2003
Posts: 150

Rep: Reputation: 15
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/mh.pid and restart it...
 
Old 04-15-2005, 09:54 AM   #4
mikemcdonough
LQ Newbie
 
Registered: Jan 2005
Location: North Carolina
Distribution: FC4
Posts: 6

Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Logging with Start stop daemon bigsness Linux - General 0 01-19-2005 04:25 PM
How do I stop the sshd daemon? ebenh Linux - Software 5 09-04-2004 02:06 PM
Howto stop daemon from starting Lawful Linux - General 3 04-30-2004 05:06 PM
How do you stop a daemon from starting at bootup?? rberry88 Fedora 6 02-18-2004 02:44 PM
How to stop and restart sendmail daemon? J_Szucs Linux - Newbie 4 06-12-2002 12:31 AM


All times are GMT -5. The time now is 09:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration