Instead of just killing all the processes, let's actually reload them,
since that's what the user would expect when issuing a 'reload' command.
Move the killall portion to a kill function
Signed-off-by: Paul Donald <[email protected]>
return 0
}
-reload() {
- /usr/lib/ddns/dynamic_dns_updater.sh -- reload
+kill() {
+ /usr/lib/ddns/dynamic_dns_updater.sh -- kill
return 0
}
+reload() {
+ restart
+}
+
restart() {
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
sleep 1 # give time to shutdown
Commands:
start Start SECTION or NETWORK or all
-stop Stop NETWORK or all
+stop Stop SECTION or NETWORK or all
Parameters:
-n NETWORK Start/Stop sections in background monitoring NETWORK, force VERBOSE=0
fi
exit 1
;;
- reload)
+ kill)
killall dynamic_dns_updater.sh 2>/dev/null
exit $?
;;