Created
June 1, 2014 09:17
-
-
Save ktimothy/7d15d9297008b23a879c to your computer and use it in GitHub Desktop.
Running memcached, mysql, postgresql as services on Mac OS X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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