mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -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
|
else
|
||||||
pids=$(pidof -x $proc_name |tr ' ' '|')
|
pids=$(pidof -x $proc_name |tr ' ' '|')
|
||||||
fi
|
fi
|
||||||
if [ -z "$pids" ]; then
|
if [ -z "$pids" ] && [ "$proc_name" != 'nginx' ] ; then
|
||||||
#fallback to pgrep
|
#fallback to pgrep
|
||||||
pids=$(pgrep $proc_name |tr '\n' '|')
|
pids=$(pgrep $proc_name |tr '\n' '|')
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue