Linux: Check Crond Status
This post will guide you how to check cron daemon running status in your Linux operating system. How do I check if cron jobs are running in Linux. How to verify if crontab works or not. How to check if a cron jobs has run under a CentOS/RHEL/Debian/Ubuntu Linux system.
We have talked that the cron tool is used to execute commands or your own scripts at a given date and time in your Linux system. the cron daemon will check your crontab file to run the cron jobs that you created. but How to check if crond daemon is running or not.
Check Crond status For Centos/RHEL 5.x/6.x Or older version Ubuntu Linux
If you are working on the CentOS/RHEL 5.x/7.x version Linux, you can execute the following command to check the cron daemon running status, type:
#service crond status
Outputs:
[root@localhost ~]# service crond status crond (pid 1790) is running...
If the cron daemon is not running, you just need to run the following command to start it, type:
#service crond start #chkconfig crond on
Check Crond Status For CentOS/RHEL 7.x/ Latest version of Ubuntu Linux
To check the Cron daemon status under CentOS/RHEL 7.x Linux system, you need to run the following command, type:
#systecmtl status crond.service
Outputs:
[root@osetc ~]# service crond status Redirecting to /bin/systemctl status crond.service crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2018-07-18 23:55:11 EDT; 1 months 4 days ago Main PID: 25548 (crond) CGroup: /system.slice/crond.service └─25548 /usr/sbin/crond -n Jul 18 23:55:11 ol7_x8664 systemd[1]: Started Command Scheduler. Jul 18 23:55:11 ol7_x8664 systemd[1]: Starting Command Scheduler... Jul 18 23:55:11 ol7_x8664 crond[25548]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 33% if used.) Jul 18 23:55:11 ol7_x8664 crond[25548]: (CRON) INFO (running with inotify support) Jul 18 23:55:11 ol7_x8664 crond[25548]: (CRON) INFO (@reboot jobs will be run at computer's startup.)
If the cron daemon is not running on your system, just execute the following command to start it, type:
#systemctl enable crond.service #systemctl start crond.service