Commit 77d83631 authored by Ad Schellevis's avatar Ad Schellevis

force exit of stray processes

parent 80eba3c2
...@@ -63,10 +63,12 @@ configd_stop() ...@@ -63,10 +63,12 @@ configd_stop()
sleep 0.1 sleep 0.1
done done
# kill if it's still running # kill any remaining configd processes (if still running)
if [ ! -z "`/bin/ps -ex | /usr/bin/awk '{print $1;}' | /usr/bin/grep "^${rc_pid}"`" ]; then for configd_pid in `/bin/ps -ex | grep 'configd.py' | /usr/bin/awk '{print $1;}' `
kill -9 ${rc_pid} do
fi kill -9 $configd_pid >/dev/null 2>&1
done
echo "..done" echo "..done"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment