packages/net/ddns-scripts/files/ddns.init
Christian Schoenebeck f5334528a7 ddns-scripts: bugfixes/update to version 2.4.1-1
* fix problem with lucihelper script reported in OpenWrt Ticket 19419
* rewritten split_FQDN fixing detection errors and using zcat
* updated tld_names.dat and .gz compressed to save space
* add LoopiaDNS (loopia.se) to services_ipv6

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-04-12 10:47:38 +02:00

28 lines
394 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
return 0 # if killall fails, ignore
}