Browse Source

Restart cron service

Bob Mottram 10 years ago
parent
commit
590c5a21ca
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone

+ 3
- 0
src/freedombone View File

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