Serghey Rodin 10 лет назад
Родитель
Сommit
3c3a399fd6
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      bin/v-list-sys-services

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

@@ -31,7 +31,7 @@ get_srv_state() {
     else
         pids=$(pidof -x $proc_name |tr ' ' '|')
     fi
-    if [ -z "$pids" ]; then
+    if [ -z "$pids" ] && [ "$proc_name" != 'nginx' ] ; then
         #fallback to pgrep
         pids=$(pgrep $proc_name |tr '\n' '|')
     fi