Why is this cron entry executed twice?

前端 未结 12 1006
栀梦
栀梦 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:26

    I had the same problem due to a double entry in conf file:

    # grep /syslog /etc/rsyslog.conf /etc/rsyslog.d/50-default.conf 
    /etc/rsyslog.conf:*.*;auth,authpriv,kern,mail.none      -/var/log/syslog
    /etc/rsyslog.d/50-default.conf:*.*;auth,authpriv,kern,mail.none -/var/log/syslog
    

    Clearly commenting one of the 2 solves the problem

提交回复
热议问题