LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-23-2003, 04:57 PM   #1
tpfraz
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
Crond running to many processes <defunct>


Hello, I have a system running RedHat 9 with kernel 2.4.20.
I have a program that I need to be running all the time. So I have a script that checks to see if that program is running and if it is not, it starts it. I then have a cron job that runs this script every 2 minutes.
My problem is that whenever the program is started via the cron job, it creates a defunct process as well as a process for sendmail.
However if I call the script manually it starts just the program, which is what I want.
The script is called "checkgame"
Below is a sample output of ps -ef

root 27888 1 0 12:50 ? 00:00:00 CROND
root 27889 27888 0 12:50 ? 00:00:00 [checkgame <defunct>]
smmsp 27913 27888 0 12:50 ? 00:00:00 /usr/sbin/sendmail -FCronDaemon -i -odi -oem root
ja5 27916 1 3 12:50 ? 00:03:38 /home/ja5/game/linuxjampded

I only need the linuxjampded program to be running.
The checkgame script in turn calls a script called rungame which runs the /home/ja5/game/linuxjampded file. But it runs it with nohup.
nohup /home/ja5/game/linuxjampded &

Does anyone have any ideas that might help?
Thanks...

-Travis
 
Old 01-13-2004, 07:03 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
I have a program that I need to be running all the time.
First make sure the app doesn't break due to configuration errors, network being down or other reasons. Then you got two choices: running the app out of init, or Google/Freshmeat for an app called "monit".
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
crond not running praveenv Linux - Newbie 6 08-31-2004 08:03 AM
problem running crond wakeupatul Linux - General 1 04-20-2004 01:28 PM
defunct processes appearing...and won't die! Axion Linux - Software 1 03-31-2004 11:43 AM
ps -aux output: CROND running repeatedly redhatman Linux - Newbie 1 03-29-2004 08:51 PM
processes showing defunct jpbarto Linux - Software 2 11-05-2003 10:15 AM


All times are GMT -5. The time now is 08:03 AM.

Main Menu
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