Skip to content

Commit 3c3a399

Browse files
committed
fix for nginx listing
1 parent 070bc98 commit 3c3a399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-list-sys-services

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ get_srv_state() {
3131
else
3232
pids=$(pidof -x $proc_name |tr ' ' '|')
3333
fi
34-
if [ -z "$pids" ]; then
34+
if [ -z "$pids" ] && [ "$proc_name" != 'nginx' ] ; then
3535
#fallback to pgrep
3636
pids=$(pgrep $proc_name |tr '\n' '|')
3737
fi

0 commit comments

Comments
 (0)