diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2014-07-01 08:58:19 +0200 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2014-07-01 09:46:37 +0200 |
commit | 00683dad1a27a49e99f4a28e3924e1c97b1b9594 (patch) | |
tree | 5199fa1034c14edf53fb7f2ffafe3ea3b44eac3a /postgresql-ctl.in | |
parent | 3768b99c83410e9744f35494624f41f78e5ab867 (diff) | |
download | postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.tar.gz postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.tar.xz postgresql-setup-00683dad1a27a49e99f4a28e3924e1c97b1b9594.zip |
postgresql-ctl, DISTSUFF: introduce
We need postgresql-ctl for to keep backward compatibility with
clients setting "PGPORT" directly in service file.
DISTSUFF variable (which is read by ./configure) may be used to
generated namespaced binary names -- e.g. DISTSUFF=93 results in
postgresql93-setup is generated instead of postgresql-setup.
This commit also adjusts autotools build system to not generate
scripts by ./configure, but rather by make.
Diffstat (limited to 'postgresql-ctl.in')
-rw-r--r-- | postgresql-ctl.in | 9 |
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"} |