Rich Shepard <rshepard@appl-ecosys.com> writes:
> su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p /usr/bin/postmaster start > /dev/null
2>&1"< /dev/null
-s /bin/sh ?
Perhaps this is causing the thing to log in with /bin/sh not bash.
IIRC, you were putting the environment variables in .bash_profile?
regards, tom lane