wmstartup.sh: Better baseball bat and break code
This commit is contained in:
parent
0c35fa7091
commit
12127ab477
@ -71,7 +71,8 @@ for service in $services; do
|
|||||||
while pgrep $service > /dev/null 2>&1; do
|
while pgrep $service > /dev/null 2>&1; do
|
||||||
if [[ "$i" = "10" ]]; then
|
if [[ "$i" = "10" ]]; then
|
||||||
printf " [INFO] Waited too long, killing $service with prejudice\n"
|
printf " [INFO] Waited too long, killing $service with prejudice\n"
|
||||||
killall -9 $service
|
pkill -9 $service
|
||||||
|
break
|
||||||
else
|
else
|
||||||
printf " [INFO] Waiting on $service\n"
|
printf " [INFO] Waiting on $service\n"
|
||||||
sleep 0.5
|
sleep 0.5
|
||||||
|
Loading…
Reference in New Issue
Block a user