mirror of
https://github.com/openwrt/packages.git
synced 2025-12-18 16:41:22 +00:00
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>
32 lines
424 B
Bash
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
|
|
}
|