Stop running sleep in a loop when blocking. Just sleep for a very long time.

This commit is contained in:
Daniel Ceregatti 2023-10-15 12:17:08 -07:00
parent a5560962bc
commit dd685a86fb

View file

@ -257,10 +257,7 @@ start(){
echo "Caught SIGTERM/SIGINT..."
exit 0
' SIGTERM SIGINT
while true
do
sleep 1
done
sleep 1
exit 0
fi
# Do the report on exit. Set here so that it only happens once we're starting the server, and not for other actions.