Skip to content

Instantly share code, notes, and snippets.

@ryanniemeyer
Created February 26, 2014 20:40
Show Gist options
  • Save ryanniemeyer/9238070 to your computer and use it in GitHub Desktop.
Save ryanniemeyer/9238070 to your computer and use it in GitHub Desktop.
Memcached launchd
<?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/bin/memcached</string>
<string>-d</string>
<string>-m</string> <string>256</string>
<string>-c</string> <string>4096</string>
<string>-p</string> <string>11211</string>
<string>-u</string> <string>memcached</string>
<string>-l</string> <string>127.0.0.1</string>
</array>
<key>Disabled</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>daemon</string>
<key>GroupName</key>
<string>daemon</string>
</dict>
</plist>
@ryanniemeyer
Copy link
Author

Save to /Library/LaunchDaemons/org.memcached.plist

Load: sudo launchctl load /Library/LaunchDaemons/org.memcached.plist

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