Selaa lähdekoodia

Restart cron after editing crontab

Bob Mottram 11 vuotta sitten
vanhempi
commit
3ac83aafce
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1
    0
      install-freedombone.sh

+ 1
- 0
install-freedombone.sh Näytä tiedosto

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