Skip to content

Commit 0dfde7f

Browse files
authored
Merge pull request #154 from scality/bugfix/PTFE-1834-fixup-unexpected-operator
PTFE-1834 fix lifecycle prestop failures
2 parents 337bbed + 98fb692 commit 0dfde7f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

stop.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ echo "Stopping nginx..."
77
sleep 5
88

99
# retrieve nginx status and check if there's any active connection
10-
ACTIVE_CONNECTION=""
10+
ACTIVE_CONNECTION="0"
1111

1212
while [ ${ACTIVE_CONNECTION} != "1" ]; do
1313
ACTIVE_CONNECTION=$(curl -s http://localhost/nginx_status | grep 'Active connections' | awk '{print $3}')
@@ -17,8 +17,3 @@ done
1717

1818
PID=$(cat /run/nginx.pid)
1919
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

Comments
 (0)