mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
postgresql: properly stop service
postmaster always detaches from procd, work around by using pg_ctl to stop the server. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=postgresql
|
PKG_NAME:=postgresql
|
||||||
PKG_VERSION:=9.5.4
|
PKG_VERSION:=9.5.4
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
|
||||||
PKG_LICENSE:=PostgreSQL
|
PKG_LICENSE:=PostgreSQL
|
||||||
|
|
||||||
|
|||||||
@@ -65,6 +65,12 @@ reload_service() {
|
|||||||
/usr/bin/pg_ctl reload -U postgres -D "${pgdata}" -s
|
/usr/bin/pg_ctl reload -U postgres -D "${pgdata}" -s
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stop_service() {
|
||||||
|
config_load "postgresql"
|
||||||
|
config_get pgdata config PGDATA
|
||||||
|
/usr/bin/pg_ctl stop -U postgres -D "${pgdata}" -s
|
||||||
|
}
|
||||||
|
|
||||||
status() {
|
status() {
|
||||||
config_load "postgresql"
|
config_load "postgresql"
|
||||||
config_get pgdata config PGDATA
|
config_get pgdata config PGDATA
|
||||||
|
|||||||
Reference in New Issue
Block a user