summaryrefslogtreecommitdiffstats
path: root/postgresql-ctl.in
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql-ctl.in')
-rw-r--r--postgresql-ctl.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/postgresql-ctl.in b/postgresql-ctl.in
new file mode 100644
index 0000000..1fe9838
--- /dev/null
+++ b/postgresql-ctl.in
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# This script is compat-wrapper for PGPORT specifying directly in
+# postgresql.service. There is not possible to do conditional step in service
+# file based on (non)existence of PGPORT variable.
+
+PG_CTL=/usr/bin/pg_ctl
+
+$PG_CTL "$@" ${PGPORT+-o "-p $PGPORT"}