WWWhost
12-11-2004, 05:40 PM
hi,
i have some problems with cronjobs on a CentOS cPanel server. They all setting up correcly however they didnt' run as they should with cronjobs.
Is there any way to let them run? Any advice where this problem could be?
Thanks a lot
tenshades
12-11-2004, 05:46 PM
Hello,
Make sure crond is running. "ps -aux |grep crond" to see if it is running and "/etc/init.d/crond restart" to restart it. Also set the mailto to your email address. It could be running but an error with one of the jobs.
Josh
WWWhost
12-11-2004, 06:44 PM
hi, i seems they are already running as when i do:
/etc/init.d/crond restart
i recive message:
Stopping crond: [FAILED]
Starting crond: [ OK ]
NetHosted-Andrew
12-11-2004, 08:32 PM
That doesn't look ok to me! What does this output?
tail /var/log/cron
Andrew
WWWhost
12-11-2004, 08:43 PM
ok i saw teh SIM cron comes back to work and hope all other comes back to.
"Hosted-Andrew" i can see the log of crons that runs when doing: tail /var/log/cron
they begins to run just afther i do as "tenshades" suggested
thanks to both :)
T7702
12-11-2004, 09:07 PM
The fact that it said it failed to stop crond tells me it was expecting it to be running but it wasnt.
T
WWWhost
12-12-2004, 06:27 AM
jes there seems still to be a problem... as afhter a server reboot all cornjobs doesn't restart. I dont' think this is the way it should work.. Any way to let the restart as it sould afhter a server reboot?
thanks a lot
T7702
12-12-2004, 09:47 AM
Check your logs and make sure something isn't failing.
Also, check /etc/rc.d/rc3.d/ and make sure you have S90crond and not K90crond.
T
madguy24
12-12-2004, 10:26 AM
I have not worked on CentOS..But try this
ckhconfig --level 2345 crond on
it will on the crond for the level 2, 3, 4 and 5 levels
Maddy
T7702
12-12-2004, 10:54 AM
Check to see if its on or off first, that way we know whats going on. If you just enable it without checking to see if it was already enabled, it dosnt help troubleshooting...
T
WWWhost
12-13-2004, 11:14 AM
T7702 -- i haven't the K90crond inside this dir.
How do i check if crons are enable or not?
If i do:
/etc/init.d/crond restart
i recive the message i post above:
Stopping crond: [FAILED]
Starting crond: [ OK ]
thanks a lot
choon
12-13-2004, 11:19 AM
Please read manual :p
man chkconfig
For checking for crond which should be running upon each reboot:
chkconfig --list|grep crond
Show us the output... ...
WWWhost
12-14-2004, 10:39 AM
choon --- doing "chkconfig --list|grep crond" doesnt' give any output for me.