#! /bin/sh # # Start PostgreSQL on the recovery target node # if [ $# -ne 2 ] then echo "pgpool_remote_start remote_host remote_datadir" exit 1 fi #DEST=$1 #DESTDIR=$2 DEST=10.1.1.171 DESTDIR=/var/lib/postgresql/9.3/main/ PGCTL= /usr/lib/postgresql/9.3/bin/pg_ctl ssh -T $DEST $PGCTL -w -D $DESTDIR start 2>/dev/null 1>/dev/null < /dev/null &