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.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 2 comments… read them below or add one }
use ‘jobs’ command
thank you. your post saved my ass :D