packages/net/ddns-scripts/files/ddns.init
Christian Schoenebeck 5731d0e52d ddns-scripts: update to version 2.3.0-1
new option "use_curl" to force the use of curl if GNU Wget and curl are installed
fix initscript reload(): reload and not restart if killall -1 fails
BusyBox nc not support -v in every compiled version

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-02-10 22:06:02 +01:00

27 lines
357 B
Bash

#!/bin/sh /etc/rc.common
START=95
STOP=10
boot() {
return 0
}
reload() {
killall -1 dynamic_dns_updater.sh 2>/dev/null # send SIGHUP
return 0
}
restart() {
stop
sleep 1 # give time to shutdown
start
}
start() {
. /usr/lib/ddns/dynamic_dns_functions.sh
start_daemon_for_all_ddns_sections
}
stop() {
killall dynamic_dns_updater.sh 2>/dev/null
}