diff --git a/init.d/openwrt/zapret b/init.d/openwrt/zapret index 208dc67..46cd10b 100755 --- a/init.d/openwrt/zapret +++ b/init.d/openwrt/zapret @@ -185,7 +185,8 @@ start_daemons() } stop_daemons() { - procd_kill "$(basename ${basescript:-$initscript})" "$1" + local svc="$(basename ${basescript:-$initscript})" + procd_running "$svc" "$1" && procd_kill "$svc" "$1" } restart_daemons() {