Restart cron after editing crontab
This commit is contained in:
parent
eb43f9e9ee
commit
3ac83aafce
|
@ -1002,6 +1002,7 @@ function dynamic_dns_freedns {
|
||||||
if ! grep -q "dynamicdns" /etc/crontab; then
|
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
|
sed -i '/# m h dom mon dow user command/a\*/5 * * * * root /usr/bin/timeout 240 /usr/bin/dynamicdns' /etc/crontab
|
||||||
fi
|
fi
|
||||||
|
service cron restart
|
||||||
echo 'dynamic_dns_freedns' >> $COMPLETION_FILE
|
echo 'dynamic_dns_freedns' >> $COMPLETION_FILE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue