From 548dfec740252cbd20ee424b4c5186da9befa3f0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 11 Sep 2015 12:56:49 +0200 Subject: Alow pgctl script passing additional paramaters to pg_ctl for stop operation --- etc/pgctl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/pgctl b/etc/pgctl index 4331ca1..d1f676f 100755 --- a/etc/pgctl +++ b/etc/pgctl @@ -8,6 +8,8 @@ . `dirname $0`/config CMD="$1" +shift + SOCKET_DIR="$PG_WORKSPACE_DIR" OUT_FILE="$PG_WORKSPACE_DIR/out" @@ -90,7 +92,7 @@ case $CMD in if test $? -eq 0; then echo "PostgreSQL server stopping ..." - pg_ctl stop -D "$PG_DATA_DIR" + pg_ctl stop -D "$PG_DATA_DIR" "$@" ERROR=$? if test $ERROR -eq 0; then -- cgit v1.1