I'm running Slackware 13.0
I edit the /etc/rc.d/rc.M file to add postgresql. The service needs to be started as the postgres user. This is what I've tried so far.
Code:
# Start the PostgreSQL database:
if [ -x /usr/local/pgsql/bin/pg_ctl ]; then
. sudo -u postgres /usr/local/pgsql/bin/pg_ctl start -D /usr/local/pgsql/data -l serverlog
fi
Code:
# Start the PostgreSQL database:
if [ -x /usr/local/pgsql/bin/pg_ctl ]; then
sudo -u postgres /usr/local/pgsql/bin/pg_ctl start -D /usr/local/pgsql/data -l serverlog
fi
It's one with and without the ".". Yet it still fails to load on boot.
If I run
Code:
sudo -u postgres /usr/local/pgsql/bin/pg_ctl start -D /usr/local/pgsql/data -l serverlog
directly in a terminal it loads up everything fine.
Any ideas?