我的服务器中运行了许多 cronjob。当我检查 syslog 文件以查看 cron 时间时,发现它们完全不匹配。有人能帮我解释一下吗?
系统日志
May 23 00:00:01 xxxxxx CRON[20251]: (root) CMD (php index.php cron_live Country_fn)
May 23 00:00:01 xxxxxx CRON[20252]: (root) CMD (php index.php cron_live CityNames_Low_fn)
May 23 00:00:01 xxxxxx CRON[20253]: (root) CMD (php index.php cron_live bloggerContact)
May 23 00:00:01 xxxxxx CRON[20268]: (root) CMD (php index.php cron_live cronCountryNames_High_fn)
May 23 00:00:01 xxxxxx CRON[20271]: (root) CMD (php index.php cron_live googleplus_state_fn)
May 23 00:00:01 xxxxxx CRON[20272]: (root) CMD (php index.php cron_live facebook_state_fn)
May 23 00:00:01 xxxxxx CRON[20269]: (root) CMD (php index.php cron_live googleplus_country_fn)
May 23 00:00:01 xxxxxx CRON[20244]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
May 23 00:00:01 xxxxxx CRON[20277]: (root) CMD (php index.php cron_live cronCityNames_High_fn)
我将00 2,5,8,11,14,17,20,23 * * *
cron 字符串设置为googleplus_country_fn工作。这意味着它应该2am, 5am, 8am, 11am, 2pm, 5pm, 8pm, 11pm
只执行()次。但系统日志显示它在上运行May 23 00:00:01 xxxxxx CRON[20269]
。
系统日志时间是开始时间、结束时间还是运行时间?有人能帮我理解一下吗?
编辑:- 完整的 cron 设置
00 2,5,8,11,14,17,20,23 * * * php index.php cron_live googleplus_country_fn