From ce46b633e24930e72c4f2ab959723d24c6b1e663 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Fri, 30 Sep 2016 13:55:14 +0200 Subject: postgresql: properly stop service postmaster always detaches from procd, work around by using pg_ctl to stop the server. Signed-off-by: Daniel Golle --- libs/postgresql/files/postgresql.init | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libs/postgresql/files') diff --git a/libs/postgresql/files/postgresql.init b/libs/postgresql/files/postgresql.init index d17264e8f..959f3271c 100644 --- a/libs/postgresql/files/postgresql.init +++ b/libs/postgresql/files/postgresql.init @@ -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 -- cgit v1.2.3