Restart cron service

This commit is contained in:
Bob Mottram 2015-03-10 19:26:08 +00:00
parent 3563f28e8d
commit 590c5a21ca
1 changed files with 3 additions and 0 deletions

View File

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