conky, wmstartup.sh: Change Conky head, fix eternal wait in wmstartup
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user