LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-27-2005, 10:23 AM   #1
ryedunn
Member
 
Registered: Jul 2003
Location: Chicago
Distribution: Fedora, ubuntu
Posts: 459

Rep: Reputation: 30
crond dead but pid file exists


None of my cron jobs are running, Im not sure what happend but when I check crond I get this message
[root@linux cron]# service crond status
crond dead but pid file exists

I can try to start cond and it appears to run fine but my logs do show this one strange error which google cannot help with:
Jan 27 10:15:20 localhost crond[25030]: (CRON) STARTUP (fork ok)
Jan 27 10:15:20 localhost crond[25030]: (CRON) STAT FAILED (cron)
Jan 27 10:15:20 localhost crond: crond startup succeeded

I immediately check the status and again I get, "crond dead but pid file exists"

I have also tried googling for "crond dead but pid file exists" which didnt help much either.

Still investigating... cron logs
Jan 7 19:01:00 www CROND[19124]: (root) CMD (nice -n 19 run-parts /etc/cron.hourly)
Jan 7 19:44:00 www crond[3038]: (CRON) STAT FAILED (cron)
and has been dead since.. Im trying to find out what happened between this time.... eitherway, Im still lost.

****UPDATE ****
When cron starts some initialization files and some programs write their PID in /var/lock or /var/run, if it dies unexpectedly it's unable to delete them and it thinks that cron is still running.
Quote:
[root@linux var]# find -name cron*
./log/cron
./run/crond.pid
./run/crond.temp
./lock/subsys/crond
./spool/cron
[root@linux var]# mv ./run/crond.pid ./run/crond.temp
[root@linux var]# mv ./lock/subsys/crond /home/user/Desktop/Trash/
[root@linux var]# service crond status
crond is stopped
[root@linux var]# service crond start
Starting crond: [ OK ]
[root@linux var]# service crond status
crond dead but pid file exists
Crap I thought I had it that time.
****END OF UPDATE ****

Can someone help me troubleshoot this problem?
TheGNUbie

Last edited by ryedunn; 01-27-2005 at 11:22 AM.
 
  


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
ntpd dead but pid file exists wjn Linux - Networking 15 05-22-2005 12:32 PM
xinetd dead but pid file exists pas Linux - Newbie 2 01-21-2005 03:52 PM
nmbd dead but pid file exists mammajamma101 Linux - Newbie 2 01-14-2005 09:16 AM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM
nmbd dead but pid file exists Zaius Linux - Newbie 8 01-26-2004 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:08 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
Open Source Consulting | Domain Registration