Why is this cron entry executed twice?

前端 未结 12 1004
栀梦
栀梦 2020-12-10 01:39
*/5 * * * * my command

This entry works but every 5 minutes it gets executed twice, why?

In /var/log/cron it shows:

         


        
12条回答
  •  [愿得一人]
    2020-12-10 02:42

    I had the same problem once, in my case was that I initialize the cron service twice by mistake. After I stopped cron # /etc/init.d/crond stop and started it again # /etc/init.d/crond start, it worked perfectly.

    I hope this can help anybody.

提交回复
热议问题