Restart cron after editing crontab

This commit is contained in:
Bob Mottram 2014-09-23 12:16:40 +01:00
parent eb43f9e9ee
commit 3ac83aafce
1 changed files with 1 additions and 0 deletions

View File

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