pgpool_remote_start 238 B

12345678910
  1. #!/bin/sh
  2. REMOTE_HOST=$1
  3. REMOTE_PGDATA=$2
  4. PGHOME=/home/yugo-n/pgsql-9.2.1
  5. ssh -T postgres@$REMOTE_HOST "
  6. LD_LIBRARY_PATH=$PGHOME/lib:LD_LIBRARH_PATH;
  7. $PGHOME/bin/pg_ctl -w -D $REMOTE_PGDATA start 2>/dev/null 1>/dev/null < /dev/null &"