Cron jobs are managed by a daemon named crond. When cron schedules are added, deleted or modified by crontab, any changes are enacted by the crond daemon. Crond daemon runs constantly in the background and checks once a minute to see if any of the scheduled jobs need to be executed. If any, crond will execute the commands. If crond process is not running, no cron jobs will be executed.
Thus, it’s important to ensure that crond daemon is running and not hanged in the system. To manage crond daemon in Linux, we can make use of “service” command.
To check the status of crond daemon:
service crond status
To stop and terminate crond process:
service crond stop
To start and run crond daemon:
service crond start
To restart crond service:
service crond restart
No comments:
Post a Comment