Linux Verify crond Daemon And Cronjobs Are Running
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.
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Ubuntu Linux how to set the date and time via Network Time Protocol (NTP)
- How To Test Linux Operating System for IPv6 Networking Support
- Run crontab Every 10 Minutes
- Red Hat / CentOS Linux: Explain Use of Network Interface virbr0
- Troubleshoot Linux / UNIX bind dns server zone problems with named-checkzone tool
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /var/log/cron, /var/log/messages, chkconfig command, cron, crond, fedora linux, linux cron, linux service, Linux Service Management, log messages, pgrep command, service command, shell, syslog facility, tail command, ububtu, Ubuntu Linux




Recent Comments
Yesterday ~ 3 Comments
Yesterday ~ 2 Comments
10/14/2008 03:10 pm (2 days ago) ~ 3 Comments
10/14/2008 01:36 pm (2 days ago) ~ 3 Comments
10/14/2008 10:04 am (2 days ago) ~ 1 Comment