#! /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 DEST=192.168.10.54 #DESTDIR=$2 DESTDIR=/var/lib/postgresql/9.3/main PGCTL=/usr/lib/postgresql/9.3/bin/pg_ctl ssh -T postgres@$DEST $PGCTL -w -D $DESTDIR start 2>/dev/null 1>/dev/null < /dev/null &