Merge pull request #10061 from ynezz/upstream/service-status-fix

treewide: fix service status
This commit is contained in:
Rosen Penev
2019-12-18 16:18:45 -08:00
committed by GitHub
8 changed files with 9 additions and 12 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=postgresql
PKG_VERSION:=11.3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
PKG_LICENSE:=PostgreSQL
PKG_CPE_ID:=cpe:/a:postgresql:postgresql
+1 -4
View File
@@ -6,9 +6,6 @@ PROG=/usr/bin/postmaster
USE_PROCD=1
EXTRA_COMMANDS="status"
EXTRA_HELP=" status Show current status of the PostgreSQL server"
fix_hosts() {
# make sure localhost (without a dot) is in /etc/hosts
grep -q 'localhost$' /etc/hosts || echo '127.0.0.1 localhost' >> /etc/hosts
@@ -71,7 +68,7 @@ stop_service() {
/usr/bin/pg_ctl stop -U postgres -D "${pgdata}" -s
}
status() {
status_service() {
config_load "postgresql"
config_get pgdata config PGDATA
/usr/bin/pg_ctl status -U postgres -D "${pgdata}"