View previous topic :: View next topic |
Author |
Message |
hairyfeet Tux's lil' helper
Joined: 07 Jan 2003 Posts: 118 Location: Århus, Denmark
|
Posted: Tue Nov 11, 2003 10:24 am Post subject: vcron won't start. |
|
|
I just discovered that cron has died on one of the machines and it wont restart.
Code: |
x init.d # /etc/init.d/vcron restart
* Starting vcron... [ !! ]
x init.d # start-stop-daemon --start --exec /usr/sbin/cron
/usr/sbin/cron already running
x init.d # cat /var/run/cron.pid
cat: /var/run/cron.pid: No such file or directory
|
The last change to crontab was made nearly a month ago.
Any hints? |
|
Back to top |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Tue Nov 11, 2003 10:31 am Post subject: |
|
|
Have you done:
Code: | ps -elf | grep vcron |
to see if there's really a vcron running?
If there is do a
and then
Code: | /etc/init.d/vcron start |
You might also need to do
Code: | /etc/init.d/vcron zap |
before the start if the vcron left other stale files around. |
|
Back to top |
|
|
hairyfeet Tux's lil' helper
Joined: 07 Jan 2003 Posts: 118 Location: Århus, Denmark
|
Posted: Tue Nov 11, 2003 10:39 am Post subject: |
|
|
Thank you a quick reply. I had already made sure that vcron was not running. But when using your arguments to ps I get a strange error.
Code: |
x init.d # ps -elf | grep vcron
Warning: /usr/src/linux/System.map has an incorrect kernel version.
0 R root 19560 32097 0 76 0 - 350 - 2004 pts/0 00:00:00 grep vcron
|
|
|
Back to top |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Tue Nov 11, 2003 10:46 am Post subject: |
|
|
Hmm... strange. I've seen that warning before. I think I had /boot mounted and had an incorrect System.map file there. Somehow the kernel was looking at that. Since I don't know what the System.map is for and never usually need it, I just deleted that one from /boot but I don't recommend you do the same since it could bork your system.
When you run the zap command does it allow your vcron to start? |
|
Back to top |
|
|
hairyfeet Tux's lil' helper
Joined: 07 Jan 2003 Posts: 118 Location: Århus, Denmark
|
Posted: Tue Nov 11, 2003 11:00 am Post subject: |
|
|
Code: |
x init.d # ps aux | grep vcron
root 21814 0.0 0.0 1400 496 pts/0 R 2004 0:00 grep vcron
x init.d # /etc/init.d/vcron zap
x init.d # /etc/init.d/vcron start
* Starting vcron... [ !! ]
|
No go |
|
Back to top |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Tue Nov 11, 2003 11:04 am Post subject: |
|
|
Have you looked for clues in your logs? See if there are any references to vcron... there should at least be a line from the /etc/init.d/vcron script. Look for errors after that.
Also, if that doesn't show you what's wrong, try running cron from the command line to see if it tells you what's going on. |
|
Back to top |
|
|
hairyfeet Tux's lil' helper
Joined: 07 Jan 2003 Posts: 118 Location: Århus, Denmark
|
Posted: Tue Nov 11, 2003 11:13 am Post subject: |
|
|
A manual restart seems to be working though this is far from a perfect solution.
Code: |
x log # /etc/init.d/vcron status
* status: stopped
x log # ps aux | grep cron
root 25369 0.0 0.0 1452 648 ? S 2004 0:00 /usr/sbin/cron
root 25492 0.0 0.0 1400 496 pts/0 R 2004 0:00 grep cron
|
Now I just hope it will keep running
Thank you for the help if you get any ideas about what is wrong I would really like to fix this in a nicer way. |
|
Back to top |
|
|
fleed l33t
Joined: 28 Aug 2002 Posts: 756 Location: London
|
Posted: Tue Nov 11, 2003 11:18 am Post subject: |
|
|
Did you look in your logs for any clues? Anything if you run dmesg? |
|
Back to top |
|
|
hairyfeet Tux's lil' helper
Joined: 07 Jan 2003 Posts: 118 Location: Århus, Denmark
|
Posted: Tue Nov 11, 2003 11:44 am Post subject: |
|
|
No clues in any of the log files. CRON just quietly dies
The system has been up for nearly a month I cannot see what I should use dmesg for? |
|
Back to top |
|
|
|