Cron not running straight after reload

I just noticed that if you update a cron job, and then set it to run in the next minute, it won’t work. Basically if a cron file has been updated, then the crond will reload it when it runs on the minute. The problem is that it reloads the file before it can see the new changes, and by the time the reload has finished, it is no longer on the minute and so the command won’t run. Anyway, to cut a long story short, if you are having problems with a cron command not running on the next minute after an update, then try setting 2 minutes ahead instead of one!

Leave a Reply

Your email address will not be published. Required fields are marked *