Skip to content

Instantly share code, notes, and snippets.

@ktimothy
Created June 1, 2014 09:17
Show Gist options
  • Save ktimothy/7d15d9297008b23a879c to your computer and use it in GitHub Desktop.
Save ktimothy/7d15d9297008b23a879c to your computer and use it in GitHub Desktop.
Running memcached, mysql, postgresql as services on Mac OS X
<?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>memcached</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/memcached</string>
</array>
<key>UserName</key>
<string>tim</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>OnDemand</key>
<false/>
<key>StandardErrorPath</key>
<string>/var/log/memcached.error.log</string>
<key>StandardOutPath</key>
<string>/var/log/memcached.log</string>
</dict>
</plist>
<?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>mysql</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/mysqld</string>
<string>--bind-address=127.0.0.1</string>
</array>
<key>UserName</key>
<string>tim</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>OnDemand</key>
<false/>
<key>WorkingDirectory</key>
<string>/usr/local/var/mysql</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/mysql/error.log</string>
<key>StandardOutPath</key>
<string>/usr/local/var/mysql/server.log</string>
</dict>
</plist>
<?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>postgresql</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/postgres</string>
<string>-D</string>
<string>/Volumes/xData/db/postgres</string>
</array>
<key>UserName</key>
<string>tim</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>OnDemand</key>
<false/>
<key>WorkingDirectory</key>
<string>/Volumes/xData/db/postgres</string>
<key>StandardErrorPath</key>
<string>/Volumes/xData/db/postgres/error.log</string>
<key>StandardOutPath</key>
<string>/Volumes/xData/db/postgres/server.log</string>
<key>StartInterval</key>
<integer>30</integer>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment