if [ -x $POSTGRESDIR/bin/postmaster -a -d $POSTGRESDIR/data ];then rm -f /tmp/.s.PGSQL.5432 su - postgres -c "/opt/local/pgsql/bin/postmaster -S -i" echo -n 'PostgreSQL Service Started' fi
オレもつくづく暇人だよなぁ・・・。 if [ -x $POSTGRESDIR/bin/postmaster -a -d $POSTGRESDIR/data ];then を if [ -x $POSTGRESDIR/bin/postmaster -a -d $POSTGRESDIR/data ] then に、 su - postgres -c "/opt/local/pgsql/bin/postmaster -S -i" の行を su postgres -c "/opt/local/pgsql/bin/postmaster -S -i" と直してみれ。
if [ -x $POSTGRESDIR/bin/postmaster -a -d $POSTGRESDIR/data ] then rm -f /tmp/.s.PGSQL.5432 su postgres -c "/opt/local/pgsql/bin/postmaster -S -i" echo -n 'PostgreSQL Service Started' fi --------------------------------------------------------------