linux - 更改 crontab 文件后重新启动 cron?

更改 crontable 文件后是否必须重新启动 cron?

最佳答案

没有。

来自cron man page :

...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

但如果你只是想确保它已经完成,

sudo service cron reload

/etc/init.d/cron reload

https://stackoverflow.com/questions/10193788/

相关文章:

python - 为什么 Python 没有符号函数?

python - 在 Python 中,如果我在 "with" block 内返回,文件还会关闭吗?

linux - 如何递归查找并列出具有子目录和时间的目录中的最新修改文件

linux - 如何在linux命令行中替换多个文件中的字符串

linux - 如何修复 'sudo: no tty present and no askpass

linux - Bash 忽略特定命令的错误

python - 从 Numpy 数组 : How do I specify the index c

linux - ./配置 :/bin/sh^M : bad interpreter

python - 如何逐行读取大型文本文件,而不将它们加载到内存中?

python - 如何检查变量是否是类?