Przeglądaj źródła

Merge pull request #1192 from spfuture/patch-1

Update v-list-sys-services  This fix detect another path for php-fpm, correctly detect service name
Serghey Rodin 8 lat temu
rodzic
commit
0f457b3c51
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      bin/v-list-sys-services

+ 1 - 1
bin/v-list-sys-services

@@ -153,7 +153,7 @@ fi
 
 # Checking WEB Backend
 if [ ! -z "$WEB_BACKEND" ] && [ "$WEB_BACKEND" != 'remote' ]; then
-    proc_name=$(ls /usr/sbin/php*fpm* |cut -f 4 -d /)
+    proc_name=$(ls /usr/sbin/php*fpm* | rev | cut -d'/' -f 1 | rev)
     get_srv_state $proc_name
     data="$data\nNAME='$WEB_BACKEND' SYSTEM='backend server' STATE='$state'"
     data="$data CPU='$cpu' MEM='$mem' RTIME='$rtime'"