Skip to content
Browse files

Merge pull request #9 from jaked/curl_timeout_on_shutdown

give curl /shutdown a timeout in case admin server is wedged
  • Loading branch information...
2 parents 5881a7f + 66949b1 commit 97811457c7d425d70e8ac8e3566ba4ada1fe4dc8 Kyle Maxwell committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/template/src/scripts/startup.sh
View
2 lib/template/src/scripts/startup.sh
@@ -87,7 +87,7 @@ case "$1" in
exit 0
fi
- curl -s http://localhost:${ADMIN_PORT}/shutdown.txt > /dev/null
+ curl -m 5 -s http://localhost:${ADMIN_PORT}/shutdown.txt > /dev/null
tries=0
while running; do
tries=$((tries + 1))

0 comments on commit 9781145

Please sign in to comment.
Something went wrong with that request. Please try again.