CronJob not running

前端 未结 11 1086
攒了一身酷
攒了一身酷 2020-11-22 02:33

I have set up a cronjob for root user in ubuntu environment as follows by typing crontab -e

  34 11 * * * sh /srv/www/live/CronJobs/daily.sh
  0          


        
11条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 02:44

    I found useful debugging information on an Ubuntu 16.04 server by running:

    systemctl status cron.service

    In my case I was kindly informed I had left a comment '#' off of a remark line:

    Aug 18 19:12:01 is-feb19 cron[14307]: Error: bad minute; while reading /etc/crontab
    Aug 18 19:12:01 is-feb19 cron[14307]: (*system*) ERROR (Syntax error, this crontab file will be ignored)
    

提交回复
热议问题