mirror of
https://github.com/openwrt/packages.git
synced 2025-12-16 15:41:20 +00: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:
@@ -65,6 +65,12 @@ reload_service() {
|
||||
/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() {
|
||||
config_load "postgresql"
|
||||
config_get pgdata config PGDATA
|
||||
|
||||
Reference in New Issue
Block a user