summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaruka harukat2010-11-07 21:57:35 +0000
committerHaruka harukat2010-11-07 21:57:35 +0000
commit42e328efd18190531071c22cef621afa37f82855 (patch)
treef532ca6f36c6a704c6d28cf0544d7cd28a6b8c3d
parent41b232e6b54c746bd5b6974d4384c893bbb1e828 (diff)
fix more about last modify:
* fix bug in pgpool.monitor arguments.
-rwxr-xr-xsrc/pgpool.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pgpool.in b/src/pgpool.in
index 0ae707b..7fe10ce 100755
--- a/src/pgpool.in
+++ b/src/pgpool.in
@@ -96,7 +96,7 @@ fi
PGPOOL_STOP_ARG=" stop"
PGPOOL_FORCE_STOP_ARG=" -m i $PGPOOL_STOP_ARG"
PGPOOL_MONITOR=${PGPOOLCMD}.monitor
-PGPOOL_MONITOR_ARGS="--conf=$PGP_CONF localhost >/dev/null 2>&1"
+PGPOOL_MONITOR_ARGS="--conf=$PGP_CONF localhost"
# Source function library.
. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs
@@ -146,7 +146,7 @@ case "$1" in
monitor)
if check_pid
then
- $PGPOOL_MONITOR $PGPOOL_MONITOR_ARGS
+ $PGPOOL_MONITOR $PGPOOL_MONITOR_ARGS >/dev/null 2>&1
exit $?
else
exit 7 # stop or fail