Skip to content

Instantly share code, notes, and snippets.

@rwoeber
Created January 29, 2010 10:13
Show Gist options
  • Save rwoeber/289619 to your computer and use it in GitHub Desktop.
Save rwoeber/289619 to your computer and use it in GitHub Desktop.
launchd configuration file for PostgreSQL
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.postgresql.dbms</string>
<key>UserName</key>
<string>postgres</string>
<key>GroupName</key>
<string>postgres</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/pgsql/bin/postmaster</string>
<string>-D</string>
<string>/var/pgsql/data</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/var/log/pgsql/postgresql.log</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment