conky, wmstartup.sh: Change Conky head, fix eternal wait in wmstartup

This commit is contained in:
2018-08-11 13:30:41 -05:00
parent 7482463203
commit 305d0df7c4
3 changed files with 12 additions and 4 deletions

View File

@@ -65,10 +65,18 @@ for service in $services; do
done
# Wait for them to die
for service in $services; do
i=0
while pgrep $service > /dev/null 2>&1; do
printf " [INFO] Waiting on $service\n"
sleep 0.5
if [[ "$i" = "10" ]]; then
printf " [INFO] Waited too long, killing $service with prejudice\n"
killall -9 $service
else
printf " [INFO] Waiting on $service\n"
sleep 0.5
i=$(expr i + 1)
fi
done
unset i
done
# Start them back up