From 00683dad1a27a49e99f4a28e3924e1c97b1b9594 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 1 Jul 2014 08:58:19 +0200 Subject: 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. --- postgresql-ctl.in | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 postgresql-ctl.in (limited to 'postgresql-ctl.in') 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"} -- cgit