postgres tcp接続
postgresはデフォルトのposgresqlスクリプトで、tcp接続を行なっていないのでtcp接続したい場合は自分で引数 -i を追加する。
【変更前】
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT}' start > /dev/null 2>&1" < /dev/null【変更後】
su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT} -i' start > /dev/null 2>&1" < /dev/null