mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
fix for postgres service listing
This commit is contained in:
parent
010d132024
commit
45426d53fc
2 changed files with 22 additions and 2 deletions
|
@ -180,6 +180,9 @@ if [ ! -z "$service" ] && [ "$service" != 'remote' ]; then
|
|||
if [ ! -e "/etc/redhat-release" ]; then
|
||||
db_proc_name='postgres'
|
||||
fi
|
||||
if [ ! -e '/etc/init.d/postgresql' ]; then
|
||||
db_proc_name='postgres'
|
||||
fi
|
||||
fi
|
||||
get_srv_state $service $db_proc_name
|
||||
str="$str\nNAME='$service' SYSTEM='database server' STATE='$state'"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue