Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Got a problem.
I created a cron job via cPanel and after what deleted it, but it didn't stop working.
Anyone knows how to stop my crons?

share|improve this question

migrated from stackoverflow.com Oct 10 '11 at 14:01

This question came from our site for professional and enthusiast programmers.

    
I think you need to tell your cron to reload it's table. If you can go to the shell, try killall -HUP cron. –  ott-- Oct 8 '11 at 14:52
add comment

3 Answers 3

If your looking to stop cron jobs all together (I believe this can be done in WHM as well):

/etc/init.d/crond stop

You may need to reload crond (although cPanel should have done that itself)

/etc/init.d/crond reload

or

/etc/init.d/crond restart

Check out its usage:

Usage: /etc/init.d/crond {start|stop|status|reload|restart|condrestart}

If that didn't fix it check if it's running:

ps -A | grep crond

And then try to kill it:

killall crond

If all fails, you may want to try restarting the server and see if that fixes it.

share|improve this answer
add comment

Just in case the crontab entry wasn't actually removed:

set $EDITOR=vi # or your editor of choice
crontab -e

Then put a # at the start of the line you want stopped.

share|improve this answer
add comment

Check the corresponding user cron manually via shell, (assuming u have root)

crontab -u username -e

and remove the corresponding cron entry. Or simply null the user crontab and restart crond,

>/var/spool/cron/username

service crond restart
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.