Просмотр исходного кода

reload instead restart for nginx

Serghey Rodin 14 лет назад
Родитель
Сommit
aa5a02e99f
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      func/restart_web
  2. 1 1
      func/shared_func.sh

+ 1 - 1
func/restart_web

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

+ 1 - 1
func/shared_func.sh

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