Thank you for the great info,
I log in through ssh and run the script with the default shell
I didn't know the path linked to /usr/local/bin. That is great to know.
Changing the start command to postgres -D /tmp/maxdb works perfect when run through the shell, but won't start when run through bootlocal.sh. If postgres is like mysql, it probably doesn't like being started by root. Is there a way to start a service by user tc through bootlocal.sh?
I tried putting:
echo -e "password for tc" | su tc
Before the postgres commands to switch users and run the last of bootlocal.sh.as user tc, but didn't have much luck with that.
Respectfully,
Jesse