Browse Source

fix for nginx listing

Serghey Rodin 10 years ago
parent
commit
3c3a399fd6
1 changed files with 1 additions and 1 deletions
  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