Explorar o código

Update restart routine in v-restart-web-backend

Kristan Kenney %!s(int64=6) %!d(string=hai) anos
pai
achega
b4c85a4bd4
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      bin/v-restart-web-backend

+ 2 - 2
bin/v-restart-web-backend

@@ -54,9 +54,9 @@ php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /)
 for back in $php_fpm
 for back in $php_fpm
 do
 do
     if [ -z "$php_fpm" ]; then
     if [ -z "$php_fpm" ]; then
-        service $WEB_BACKEND restart >/dev/null 2>&1
+        $BIN/v-restart-service $WEB_BACKEND > /dev/null 2>&1
     else
     else
-        service $back restart >/dev/null 2>&1
+        $BIN/v-restart-service $back > /dev/null 2>&1
     fi
     fi
 done
 done
 if [ $? -ne 0 ]; then
 if [ $? -ne 0 ]; then