On Mon, Oct 20, 2014 at 5:56 PM, Jerry Levan <jerry.le...@gmail.com> wrote:

> 2) SystemStarter is no longer available. Gulp… I am not a very good plist
> creator.
>   Is there a fairly generic plist I can edit to specify my locations of the
>   software bits so I can have postgresql started at boot time?
>

## Enable PostgreSQL to auto start in Mac OS X 10.7.x (Lion)
sudo launchctl load -w
/Library/LaunchDaemons/com.edb.launchd.postgresql-9.1.plist

NOTE: "com.edb.launchd.postgresql-9.1.plist" file contains PostgreSQL
Data directory and  PostgreSQL binary locations.


## Manually Start PostgreSQL
## su as user "postgres" and run server [sudo su - postgres]:
cd /Library/PostgreSQL/9.1/bin/
./pg_ctl -D /Library/PostgreSQL/9.1/data/ start

## Manually Stop PostgreSQL
./pg_ctl -D /Library/PostgreSQL/9.1/data/ stop

Thanks & Regards

Raghu Ram

Reply via email to