We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 337bbed + 98fb692 commit 0dfde7fCopy full SHA for 0dfde7f
stop.sh
@@ -7,7 +7,7 @@ echo "Stopping nginx..."
7
sleep 5
8
9
# retrieve nginx status and check if there's any active connection
10
-ACTIVE_CONNECTION=""
+ACTIVE_CONNECTION="0"
11
12
while [ ${ACTIVE_CONNECTION} != "1" ]; do
13
ACTIVE_CONNECTION=$(curl -s http://localhost/nginx_status | grep 'Active connections' | awk '{print $3}')
@@ -17,8 +17,3 @@ done
17
18
PID=$(cat /run/nginx.pid)
19
nginx -s quit
20
-
21
-echo "Waiting for nginx PID: ${PID} to stop..."
22
-while [ -d /proc/$PID ]; do
23
- sleep 0.1
24
-done
0 commit comments