Skip to content

Instantly share code, notes, and snippets.

@trevorsheridan
Created February 29, 2012 19:17
Show Gist options
  • Save trevorsheridan/1943718 to your computer and use it in GitHub Desktop.
Save trevorsheridan/1943718 to your computer and use it in GitHub Desktop.
PostgreSQL launchd configuration
<?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>Disabled</key>
<false/>
<key>Label</key>
<string>org.postgresql.postgresqld.plist</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/pgsql/bin/postgres</string>
<string>-D/usr/local/pgsql/data</string>
<string>--logging_collector=YES</string>
<string>--log_connections=on</string>
<string>--log_directory=/usr/local/pgsql/log</string>
<string>--log_filename=postgres_%Y-%m-%d_%H:%M.log</string>
<string>--log_rotation_size=1024</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>trevorsheridan</string>
<key>KeepAlive</key>
<dict>
<key>SuccessfulExit</key>
<false/>
</dict>
</dict>
</plist>
@trevorsheridan
Copy link
Author

Replace UserName key's value (trevorsheridan) with your username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment