Specifying PostgreSQL data on startup

Alexy Khrabrov deliverable at gmail.com
Thu May 28 11:42:44 PDT 2009


I'd like to use the startup scripts for PostgreSQL 8.3 server, in

/opt/local/etc/LaunchDaemons/org.macports.postgresql83-server

with Lingon: http://tuppis.com/lingon/

Now the scripts allow for an environment variable to specify where  
your data is:

        su postgres -c "${PGCTL} -D ${POSTGRESQL83DATA:=/opt/local/var/ 
db/postgresql83/defaultdb} start -l /opt/local/var/log/postgresql83/ 
postgres.log"

However, it the server is started on boot, where does  
$POSTGRESQL83DATA come from?

Cheers,
Alexy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090528/a92f9bdf/attachment.html>


More information about the macports-users mailing list