mirror of
https://github.com/openwrt/packages.git
synced 2026-01-10 11:44:48 +00:00
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>
This commit is contained in:
committed by
Florian Eckert
parent
081f1856a5
commit
9f3d6fed24
@@ -6,11 +6,15 @@ boot() {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user