Skip to content

Instantly share code, notes, and snippets.

@zachhale
Created May 12, 2010 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachhale/398823 to your computer and use it in GitHub Desktop.
Save zachhale/398823 to your computer and use it in GitHub Desktop.
sudo vim /Library/LaunchDaemons/org.redis.redis-server.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>org.redis.redis-server</string>
<key>Program</key>
<string>/usr/local/bin/redis-server</string>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/redis-server/error.log</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/redis-server/output.log</string>
</dict>
</plist>
sudo mkdir /usr/local/var/log/redis-server # or don't if you don't really want the logs
sudo launchctl load /Library/LaunchDaemons/org.redis.redis-server.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment