fix more about last modify:
authorHaruka harukat <harukat at sraoss.co.jp>
Sun, 7 Nov 2010 21:57:35 +0000 (21:57 +0000)
committerHaruka harukat <harukat at sraoss.co.jp>
Sun, 7 Nov 2010 21:57:35 +0000 (21:57 +0000)
        * fix bug in pgpool.monitor arguments.

src/pgpool.in

index 0ae707bdc65b53b5ca48876427518fc473f4c5d9..7fe10ceb24876904144fc589910452f0440fb883 100755 (executable)
@@ -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