Fix pgpool_setup to reflect the -p (baseport) to ORIGBASEPORT variable.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 1 Sep 2019 02:38:35 +0000 (11:38 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Sun, 1 Sep 2019 02:46:28 +0000 (11:46 +0900)
Otherwise, shutdown generated script by pgpool_setup does not use
proper port number for netstat command.

src/test/pgpool_setup

index 77218b59929aefdb1bd4add8c5044bfb33ca5916..ae50be849cb107f057ebc9e1161e9277dfd25be2 100755 (executable)
@@ -765,6 +765,7 @@ do
        elif [ $1 = "-p" ];then
                shift
                BASEPORT=$1
+               ORIGBASEPORT=$1
        elif [ $1 = "-pg" ];then
                shift
                PGBASEPORT=$1