mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
fix for nginx listing
This commit is contained in:
parent
070bc98ff9
commit
3c3a399fd6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue