summaryrefslogtreecommitdiffstats
path: root/postgresql-ctl.in
blob: 1fe98389a2c7ba5b14fe8137da2c1025da338065 (plain)
1
2
3
4
5
6
7
8
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"}