Restart cron service
This commit is contained in:
parent
3563f28e8d
commit
590c5a21ca
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue