Redirect stdout, stderr to log file while starting Pgpool-II without running in daemo...
authorpengbo <pengbo@sraoss.co.jp>
Sun, 26 Feb 2017 02:27:27 +0000 (11:27 +0900)
committerpengbo <pengbo@sraoss.co.jp>
Sun, 26 Feb 2017 02:27:27 +0000 (11:27 +0900)
status.php

index bb3ace954f10f04aea6f6d135a25cadfc28b899c..33ccf79a607f87d05bfb55750b3ec2e6dec52a11 100644 (file)
@@ -249,7 +249,7 @@ function _setStartArgs()
                 if (isPipe($pgpoolLog)) {
                     $args[] = "2>&1 > $pgpoolLog &";
                 } else {
-                    $args[] = "> $pgpoolLog &";
+                    $args[] = "> $pgpoolLog 2>&1 &";
                 }
             }
             break;