Monday, January 31, 2022

[SOLVED] Restarting cron after changing crontab file?

Issue

Do I have to restart cron after changing the crontable file?


Solution

No.

From the cron man page:

...cron will then examine the modification time on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified

But if you just want to make sure its done anyway,

sudo service cron reload

or

/etc/init.d/cron reload


Answered By - leonbloy
Answer Checked By - Mildred Charles (WPSolving Admin)