Postgres, OS X Tiger, and launchd
Postgres, OS X Tiger, and launchd
От:
Nicholas Tulach <ntulach@mac.com>
Дата:
I spent the last few hours attempting to get Postgres to start via
launchd in OS X Tiger, so I thought I'd share with the community what
I ended up doing:
I created a file called "org.postgres.PostgreSQL.plist", which I'm
including at the end of this message.
Simply place the file in the /Library/LaunchAgents folder, restart,
and Voila! Your DB server should be running.
Feel free to email me if you've got ?s.
cheers,
-n
Here is the file (between the equals signs at the top and bottom)
====
GID
502
GroupName
postgres
Label
org.postgres.PostgreSQL
OnDemand
ProgramArguments
/usr/local/pgsql/bin/postmaster
-D
/usr/local/pgsql/data
ServiceDescription
PostgreSQL Database Server
UID
502
UserName
postgres
====
Re: Postgres, OS X Tiger, and launchd
Hey Nicholas - - I tried your tip from May 6, 2005: http://archives.postgresql.org/pgsql-ports/2005-05/msg00005.php But I modified the .plist file. Your tip worked great, but I had to put the file in the /Library/LaunchDaemons folder, rather than /Library/LaunchAgents Cheers, Jesse