Linux Verify crond Daemon And Cronjobs Are Running

by on June 8, 2008 · 4 comments· LAST UPDATED June 3, 2008

in , ,

Q. How do I verify or check cronjob is running or not under CentOS / RHEL / Fedora Linux from a shell prompt?

A. cron / crond is daemon to execute scheduled commands (Vixie Cron). Usually, it is started automatically from /etc/init.d on entering multi-user runlevels.

RHEL / CentOS / Fedora Linux Verify Cron Service

You can simply use any one of the following command to see if crond is running or not, enter:
# pgrep crond
OR
# service crond status
Sample output:

crond (pid 4370) is running...

If it is not running type the following two command to start crond:
# chkconfig crond on
# service crond start

Verify cron is running by viewing log file, enter:
# tail -f /var/log/cron

A note about Debian / Ubuntu Linux Cron service

Under Debian and Ububtu Linux cron logs its action logged to the syslog facility i.e. use /var/log/messages file:
# tail -f /var/log/messages
Find out if cron daemon is running or not, enter:
# pgrep cron

See Debian / Linux service management for more information.

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 4 comments… read them below or add one }

1 Tushar December 8, 2009 at 6:30 pm

use ‘jobs’ command

Reply

2 hostingas, svetainiu talpinimas November 16, 2011 at 10:11 pm

thank you. your post saved my ass :D

Reply

3 Pops January 24, 2013 at 3:59 pm

Screw your ass………
this solution didn’t helped me.

Reply

4 shgn November 24, 2013 at 5:50 am

thank you.

Reply

Leave a Comment

Tagged as: , , , , , , , , , , , , , , , ,

Previous Faq:

Next Faq: