update httpubus
This commit is contained in:
@@ -26,8 +26,11 @@ start() {
|
||||
|
||||
stop() {
|
||||
local pidcount=$(pgrep "ubus-status" | wc -l)
|
||||
if [ "$pidcount" -eq 1 ]; then
|
||||
killall -9 ubus-status
|
||||
if [ "$pidcount" -eq 0 ]; then
|
||||
local pidcount=$(pgrep "ubus-status.sh" | wc -l)
|
||||
fi
|
||||
if [ "$pidcount" -gt 0 ]; then
|
||||
killall -9 ubus-status ubus-status.sh 2>/dev/null
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user