From 47e860c6f932283d9b736325da01c8dadd5c7115 Mon Sep 17 00:00:00 2001 From: Nozomi Anzai Date: Tue, 17 Jul 2012 10:20:54 +0900 Subject: [PATCH] Add "-C" option of command "pgpool" to pgmgt.conf. --- config.php | 3 ++- templates/config.tpl | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index 64ca5a3..5e74406 100644 --- a/config.php +++ b/config.php @@ -105,6 +105,7 @@ switch ( $action ) { setBool('d'); setValue('m'); setBool('n'); + setBool('C'); setValue('pgpool_logfile'); // pipe @@ -243,7 +244,7 @@ function writePgmtConf($pgmgtConfigFile) write($fp, '_PGPOOL2_CMD_OPTION_C', $params['c']); write($fp, '_PGPOOL2_CMD_OPTION_LARGE_D', $params['D']); - write($fp, '_PGPOOL2_CMD_OPTION_D', $params['n']); + write($fp, '_PGPOOL2_CMD_OPTION_D', $params['d']); write($fp, '_PGPOOL2_CMD_OPTION_M', $params['m']); write($fp, '_PGPOOL2_CMD_OPTION_N', $params['n']); write($fp, '_PGPOOL2_CMD_OPTION_LARGE_C', $params['C']); diff --git a/templates/config.tpl b/templates/config.tpl index 70b1cf7..ea58efd 100644 --- a/templates/config.tpl +++ b/templates/config.tpl @@ -139,6 +139,17 @@
{$errors.d|escape} {/if} + {$message.strCmdLargeC|escape}(-C) + + {if $params.C == 1} + + {else} + + {/if} + {if isset($errors.n)} +
{$errors.n|escape} + {/if} + {$message.strCmdM|escape}(-m)