fix for postgres service listing

This commit is contained in:
Serghey Rodin 2015-07-13 22:41:06 +03:00
commit 45426d53fc
2 changed files with 22 additions and 2 deletions

View file

@ -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'"