Skip to content

Commit e5f917a

Browse files
author
Serghey Rodin
committed
dynamic proc_name for php-fpm
1 parent 9aae395 commit e5f917a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-list-sys-services

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ fi
153153

154154
# Checking WEB Backend
155155
if [ ! -z "$WEB_BACKEND" ] && [ "$WEB_BACKEND" != 'remote' ]; then
156-
get_srv_state $WEB_BACKEND
156+
proc_name=$(ls /usr/sbin/php*fpm* |cut -f 4 -d /)
157+
get_srv_state $proc_name
157158
data="$data\nNAME='$WEB_BACKEND' SYSTEM='backend server' STATE='$state'"
158159
data="$data CPU='$cpu' MEM='$mem' RTIME='$rtime'"
159160
fi

0 commit comments

Comments
 (0)