From e5f917a970f184228a6a4e9fa12eb038140af53f Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 23 Nov 2016 11:29:52 +0200 Subject: [PATCH] dynamic proc_name for php-fpm --- bin/v-list-sys-services | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/v-list-sys-services b/bin/v-list-sys-services index 64556e76..9b20ac99 100755 --- a/bin/v-list-sys-services +++ b/bin/v-list-sys-services @@ -153,7 +153,8 @@ fi # Checking WEB Backend if [ ! -z "$WEB_BACKEND" ] && [ "$WEB_BACKEND" != 'remote' ]; then - get_srv_state $WEB_BACKEND + proc_name=$(ls /usr/sbin/php*fpm* |cut -f 4 -d /) + get_srv_state $proc_name data="$data\nNAME='$WEB_BACKEND' SYSTEM='backend server' STATE='$state'" data="$data CPU='$cpu' MEM='$mem' RTIME='$rtime'" fi