summaryrefslogtreecommitdiffstats
path: root/postgresql-ctl.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-ctl.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-ctl.in')
-rw-r--r--postgresql-ctl.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/postgresql-ctl.in b/postgresql-ctl.in
index 546ffba..ad18004 100644
--- a/postgresql-ctl.in
+++ b/postgresql-ctl.in
@@ -17,6 +17,11 @@
@SCL_SOURCE@
+# Help users to run postgresql server extensions built against specific
+# software collection (that said, such collection is runtime dependancy of
+# such extension, not the server itself).
+test -n "$PGSCLS" && source scl_source enable $PGSCLS
+
port=()
if test "$1" = "start" && test -n "$PGPORT"; then
port=(-o "-p $PGPORT")