Files
openwrt-packages/net/ddns-scripts/files/etc/init.d/ddns
Paul Donald 9f3d6fed24 ddns-scripts: fix daemon to reload instead of kill
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 <newtwen+github@gmail.com>
2025-04-18 18:06:14 +02:00

32 lines
424 B
Bash

#!/bin/sh /etc/rc.common
START=95
STOP=10
boot() {
return 0
}
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
/usr/lib/ddns/dynamic_dns_updater.sh -- start
}
start() {
/usr/lib/ddns/dynamic_dns_updater.sh -- start
}
stop() {
/usr/lib/ddns/dynamic_dns_updater.sh -- stop
return 0
}