Skip to content

Instantly share code, notes, and snippets.

@tylerhunt
Created October 13, 2011 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerhunt/041fb2b620677370354d to your computer and use it in GitHub Desktop.
Save tylerhunt/041fb2b620677370354d to your computer and use it in GitHub Desktop.
PostgreSQL LaunchDaemon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.postgresql.postmaster</string>
<key>RunAtLoad</key>
<true />
<key>UserName</key>
<string>_postgres</string>
<key>GroupName</key>
<string>_postgres</string>
<key>EnvironmentVariables</key>
<dict>
<key>PGDATA</key>
<string>/usr/local/pgsql/data</string>
</dict>
<key>ProgramArguments</key>
<array>
<string>/usr/local/pgsql/bin/postmaster</string>
</array>
<key>StandardOutPath</key>
<string>/usr/local/pgsql/logfile</string>
<key>StandardErrorPath</key>
<string>/usr/local/pgsql/logfile</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment