Skip to content

Commit a3a2daa

Browse files
authored
Removing nginx restart lock
1 parent b329be0 commit a3a2daa

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bin/v-restart-proxy

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fi
5353
if [ "$1" = 'background' ]; then
5454
# Restart system
5555
sleep 1
56-
rm /tmp/restart-nginx
56+
# rm /tmp/restart-nginx
5757
service $PROXY_SYSTEM restart >/dev/null 2>&1
5858
if [ $? -ne 0 ]; then
5959
send_email_report
@@ -68,17 +68,17 @@ if [ "$1" = 'background' ]; then
6868
exit;
6969
fi
7070

71-
if [ -f "/tmp/restart-nginx" ]; then
72-
exit;
73-
fi
71+
# if [ -f "/tmp/restart-nginx" ]; then
72+
# exit;
73+
# fi
7474

7575
service $PROXY_SYSTEM reload
7676
if [ $? -ne 0 ]; then
7777
send_email_report
7878
check_result $E_RESTART "$PROXY_SYSTEM reload failed"
7979
fi
8080

81-
touch /tmp/restart-nginx
81+
# touch /tmp/restart-nginx
8282
nohup $BIN/v-restart-proxy 'background' &>/dev/null &
8383

8484
#----------------------------------------------------------#

0 commit comments

Comments
 (0)