From 3c3a399fd61fef3b4cb6d1f25e7792a3b3037864 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Tue, 2 Jun 2015 01:34:53 +0300 Subject: [PATCH] fix for nginx listing --- bin/v-list-sys-services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/v-list-sys-services b/bin/v-list-sys-services index 77ed06508..4bea1b38f 100755 --- a/bin/v-list-sys-services +++ b/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