Przeglądaj źródła

reload instead restart for nginx

Serghey Rodin 14 lat temu
rodzic
commit
aa5a02e99f
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      func/restart_web
  2. 1 1
      func/shared_func.sh

+ 1 - 1
func/restart_web

@@ -15,7 +15,7 @@ apache() {
 }
 
 nginx() {
-    /etc/init.d/nginx 'restart' >/dev/null 2>&1
+    /etc/init.d/nginx 'reload' >/dev/null 2>&1
     if [ $? -ne 0 ]; then
         #$V_FUNC/report_issue 'web' 'nginx'
         echo "$E_RESTART_FAILED $V_EVENT"

+ 1 - 1
func/shared_func.sh

@@ -1350,4 +1350,4 @@ get_config_value() {
 
     # Print value
     echo "$value"
-}
+}