浏览代码

Restart cron service

Bob Mottram 10 年前
父节点
当前提交
590c5a21ca
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      src/freedombone

+ 3
- 0
src/freedombone 查看文件

@@ -1086,6 +1086,9 @@ function randomize_cron {
1086 1086
   # randomize monthly cron job time and day
1087 1087
   sed -i "s|52 6\t|$randmin $randhr\t|g" /etc/crontab
1088 1088
   sed -i "s|\t1 \* \*|\t$randdom * *|g" /etc/crontab
1089
+
1090
+  service cron restart
1091
+
1089 1092
   echo 'randomize_cron' >> $COMPLETION_FILE
1090 1093
 }
1091 1094