launchd for Redis, MongoDB, memcached and Kestrel
If you're an infrastructure geek, you probably find yourself tinkering on a variety of services outside of the SQL world — see redis mongo memcached kestrel. I've been manually spinning each service on an "as-needed" basis, but I've finally overcome my laziness and put together a few launchd plists to keep the services running on OS X. Launchd is pretty simple, though not without its painful nuances. Still, most people would probably prefer to cut and paste than write from scratch. So without further ado...
- redis - com.swig505.redis.plist
- MongoDB - com.swig505.mongodb.plist
- memcached - com.swig505.memcached.plist
- Kestrel - com.swig505.kestrel.plist
Note: Once you've edited each plist (your paths will probably differ from mine), move it to the /Library/LaunchDaemons folder and then start it up with launchctl. Example:
sudo launchctl load /Library/LaunchDaemons/com.swig505.redis.plist
sudo launchctl start com.swig505.redis
Reference
- launchd.plist man page:
man launchd.plist - launchctl man page:
man launchctl