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:50:24 +0000 (11:50 +0900)
Otherwise, shutdown generated script by pgpool_setup does not use
proper port number for netstat command.

src/test/pgpool_setup

index 0bd4726469a7ca159b4cfd9f577880d1bb5864e8..02b4710c6088af2a3bbbb344b132698b4930bcf1 100755 (executable)
@@ -622,6 +622,7 @@ do
        elif [ $1 = "-p" ];then
                shift
                BASEPORT=$1
+               ORIGBASEPORT=$1
        elif [ $1 = "--no-stop" ];then
                shift
                NO_STOP="true"