Browse Source

Restart cron after editing crontab

Bob Mottram 11 years ago
parent
commit
3ac83aafce
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      install-freedombone.sh

+ 1
- 0
install-freedombone.sh View File

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