mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
[for-15.05] ddns-scripts: backport of 2.7.6-10
Backport of current version 2.7.6-10 - more services - more functionality - be prepared for next versions compiled ipk-packages available at https://github.com/chris5560/OpenWrt-Backports/tree/master/for-CC15.05.01/ddns-scripts_2.7.6-10 Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
This commit is contained in:
@@ -7,22 +7,21 @@ boot() {
|
||||
}
|
||||
|
||||
reload() {
|
||||
killall -1 dynamic_dns_updater.sh 2>/dev/null # send SIGHUP
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- reload
|
||||
return 0
|
||||
}
|
||||
|
||||
restart() {
|
||||
stop
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
|
||||
sleep 1 # give time to shutdown
|
||||
start
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- start
|
||||
}
|
||||
|
||||
start() {
|
||||
. /usr/lib/ddns/dynamic_dns_functions.sh
|
||||
start_daemon_for_all_ddns_sections
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- start
|
||||
}
|
||||
|
||||
stop() {
|
||||
killall dynamic_dns_updater.sh 2>/dev/null
|
||||
return 0 # if killall fails, ignore
|
||||
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user