summaryrefslogtreecommitdiffstats
path: root/postgresql.init.in
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2015-03-19 13:09:39 +0100
committerPavel Raiskup <praiskup@redhat.com>2015-03-19 13:55:10 +0100
commitf109dcd27eaebcf89a7db056a0f0d46fcb3ed1a9 (patch)
tree3f0dc8a97d0a58bc02c11c63fc7faf1628be1182 /postgresql.init.in
parent8c7b2cd5f6d9efb59568382cd8b6e88d9be517bb (diff)
downloadpostgresql-setup-f109dcd27eaebcf89a7db056a0f0d46fcb3ed1a9.tar.gz
postgresql-setup-f109dcd27eaebcf89a7db056a0f0d46fcb3ed1a9.tar.xz
postgresql-setup-f109dcd27eaebcf89a7db056a0f0d46fcb3ed1a9.zip
init: add PGSCLS env variable
* postgresql-ctl.in: Respect PGSCLS env variable. * postgresql.init.in: Export PGSCLS variable possibly sourced from sysconfig configuration file. * NEWS: Document.
Diffstat (limited to 'postgresql.init.in')
-rw-r--r--postgresql.init.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/postgresql.init.in b/postgresql.init.in
index ca0909e..7fca5f3 100644
--- a/postgresql.init.in
+++ b/postgresql.init.in
@@ -74,6 +74,7 @@ PG_OOM_ADJ=-17
export PGDATA
export PGPORT
export PGSTARTTIMEOUT
+export PGSCLS
lockfile="/var/lock/subsys/${NAME}"
@@ -117,8 +118,9 @@ start()
# the system too long. See `man pg_ctl & -w option`. This is not issue in
# case of systemd.
- run_cmd_as_dbadmin \
- "@libexecdir@/postgresql-ctl start -D ${PGDATA} -s \
+ run_cmd_as_dbadmin "\
+ PGSCLS='${PGSCLS}' \
+ @libexecdir@/postgresql-ctl start -D ${PGDATA} -s \
-w -t ${PGSTARTTIMEOUT-30}" \
"$PGLOG" "$PGLOG"