From a3a2daa4cd2568300a06ecd8076bde5969572487 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Thu, 26 Apr 2018 18:46:00 +0200 Subject: [PATCH] Removing nginx restart lock --- bin/v-restart-proxy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/v-restart-proxy b/bin/v-restart-proxy index 14356038..98661ec8 100755 --- a/bin/v-restart-proxy +++ b/bin/v-restart-proxy @@ -53,7 +53,7 @@ fi if [ "$1" = 'background' ]; then # Restart system sleep 1 - rm /tmp/restart-nginx + # rm /tmp/restart-nginx service $PROXY_SYSTEM restart >/dev/null 2>&1 if [ $? -ne 0 ]; then send_email_report @@ -68,9 +68,9 @@ if [ "$1" = 'background' ]; then exit; fi -if [ -f "/tmp/restart-nginx" ]; then - exit; -fi +# if [ -f "/tmp/restart-nginx" ]; then +# exit; +# fi service $PROXY_SYSTEM reload if [ $? -ne 0 ]; then @@ -78,7 +78,7 @@ if [ $? -ne 0 ]; then check_result $E_RESTART "$PROXY_SYSTEM reload failed" fi -touch /tmp/restart-nginx +# touch /tmp/restart-nginx nohup $BIN/v-restart-proxy 'background' &>/dev/null & #----------------------------------------------------------#