
June 24th, 2003, 10:29 PM
|
|
Gödelian monster
|
|
Join Date: Jul 1999
Location: Central Florida, USA
|
|
For Slackware, here is the quick easy answer: just put a line something like this in /etc/rc.d/rc.local
Code:
su postgres -c "/usr/local/pgsql/bin/pg_ctl start -o -i -D /usr/local/pgsql/data -s -l /usr/local/pgsql/data/serverlog"
This is assuming the following:
1. the main user for the postgres daemon is 'postgres'. If yours is different, put that user in the 'su [username] -c position.
2. /etc/rc.d/rc.local is already there and already has the shell script header (#!/usr/bin/bash). If not, and you are creating the file for the first time, make sure that #!/usr/bin/bash is at the top of your file, and that the file is chmodded executable.
3. Of course correct for path if your binaries or log are different from the above
See PostgreSQL documentation, or the INSTALL file for more information about the pg_ctl startup options)
|