wmstartup.sh: Better baseball bat and break code

This commit is contained in:
Salt 2018-08-14 22:10:59 -05:00
parent 0c35fa7091
commit 12127ab477

View File

@ -71,7 +71,8 @@ for service in $services; do
while pgrep $service > /dev/null 2>&1; do
if [[ "$i" = "10" ]]; then
printf " [INFO] Waited too long, killing $service with prejudice\n"
killall -9 $service
pkill -9 $service
break
else
printf " [INFO] Waiting on $service\n"
sleep 0.5