更改 crontab 文件后重新启动 cron? [英] Restarting cron after changing crontab file?
本文介绍了更改 crontab 文件后重新启动 cron?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
更改 crontable 文件后是否必须重新启动 cron?
Do I have to restart cron after changing the crontable file?
推荐答案
没有
来自 cron 手册页:
...cron 然后会检查所有 crontab 上的修改时间并重新加载那些已经改变的.因此cron不需要重新启动每当修改 crontab 文件时
...cron will then examine the modification time on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified
但如果你只是想确保它完成了,
But if you just want to make sure its done anyway,
sudo service cron reload
或
/etc/init.d/cron reload
这篇关于更改 crontab 文件后重新启动 cron?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文