Start, Stop and Restart Crond Daemon in Linux

Cron jobs in Linux and its variants such as FreeBSD or CentOS which commonly used on web hosts due to popularity of cPanel web server control panel system, is important time based scheduled tasks and commands that perform various functions such as log rotation, updates checking, system maintenance, file system cleaning, backup, service restart and etc.

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

2 Responses to “Start, Stop and Restart Crond Daemon in Linux”

  1. SivaramaKrishnan
    July 3rd, 2008 13:04
    2

    I have cron daemon running and I added an entry using crontab -e command. When the exact time reached, the script that is specified is the crontab did not get executed.

    But, if I restart the cron daemon (using the command /etc/init.d/crond restart) after adding the cron entry (using crontab -e command), then the script gets executed at the specified time.

    When I looked at the man page of crond, they have clearly mentioned that, it is not required to restart cron daemon everytime the cron entries are updated. Am not sure whether I need to start the cron daemon with specific parameters so that it does not need to be restarted every time I update the cron entries.

    Any help is appreciated.
    Thanks & Regards
    - Siva

  2. cPanel Update (upcp) Is Already Running Problem » My Digital Life
    December 6th, 2007 00:05
    1

    [...] killing crond process, you will have to start crond daemon again, else all cron jobs won’t run. Get help or contribute tips or tricks at My Digital Life [...]

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

restart cron daemon - restart cron freebsd - centos restart cron - start crontab daemon - linux start telnet daemon - how to restart crond process - linux start daemon - centos crond - linux restart cron - starting crond - FreeBSD - linux stop service - unix crontab how to disable cron job daemon - linux crond - restart cron centos - stop cron daemon - crond linux - start crond centos - +aix restart cron - centos cron restart - service crond restart in centos - start cron daemon busybox - ubuntu cron daemon restart - ubuntu cron daemon stop - web script start stop linux daemons - commands that stops then restarts the atd daemon - crontab neu starten - crond daemon - cron restart linux - how to restart daemon linux - linux stop deamon - aix restart cron - centos auto start crond - centos start crond - cron daemon restart aix - crond stopping mails - crontab restart linux - CROND process - cron.d restart - daemon linux status - free bsd cron restart - how to start cron daemon in linux - how to restart cron - linux cron restart - linux restarting daemons - linux daemon stop - reboot using crontab in linux - restart cron in centos - restart cron daemonaix - set cron in linux shutdown -