Skip to content

Instantly share code, notes, and snippets.

@level09
Created May 22, 2012 11:50
Show Gist options
  • Save level09/2768573 to your computer and use it in GitHub Desktop.
Save level09/2768573 to your computer and use it in GitHub Desktop.
Luanchd configuration for redis
<?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>redis-server</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/redis-server</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
@level09
Copy link
Author

level09 commented May 22, 2012

this file goes to /Library/LaunchDaemons

then you can

sudo launchctl load redis-server.plist

sudo launchctl start redis-server

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