浏览代码

Restart cron after editing crontab

Bob Mottram 11 年前
父节点
当前提交
3ac83aafce
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      install-freedombone.sh

+ 1
- 0
install-freedombone.sh 查看文件

1002
   if ! grep -q "dynamicdns" /etc/crontab; then
1002
   if ! grep -q "dynamicdns" /etc/crontab; then
1003
     sed -i '/# m h dom mon dow user	command/a\*/5 * * * * root /usr/bin/timeout 240 /usr/bin/dynamicdns' /etc/crontab
1003
     sed -i '/# m h dom mon dow user	command/a\*/5 * * * * root /usr/bin/timeout 240 /usr/bin/dynamicdns' /etc/crontab
1004
   fi
1004
   fi
1005
+  service cron restart
1005
   echo 'dynamic_dns_freedns' >> $COMPLETION_FILE
1006
   echo 'dynamic_dns_freedns' >> $COMPLETION_FILE
1006
 }
1007
 }
1007
 
1008