- Redis LaunchDaemon
- Intro to Mongolytics
- MongoDB in a Deployed Environment
- Rubynation 2009 Slides
- Playing Catch-up
- Giving Required Access to www-data User
- jQuery and Callbacks
- Merb and Subdomains with Nginx
- PostgreSQL Part 1
- Making the New ICS Website
- New ICS Vision Site
- I Normally Love Debian
- Do We Really Need MobileMe?
- Three Games
- Stopped Using Things
Redis LaunchDaemon
Run Redis at Startup on Mac OS X
2009-12-28LaunchDaemons are the Mac OS X equivalent of init.d scripts on most Linux systems. I keep mine collected in the root LaunchDaemons folder at /Library/LaunchDaemons. LaunchDaemons are simply xml plist configuration files which indicate the how, where, and when to start a server which daemonizes at startup. Here's one for Redis:
Redis LaunchDaemon
The important lines to note are 9 and 10, under ProgramArguments. The first line is where I built the Redis server and placed it on my system. Yours may be in a different location entirely. The second is the configuration I use. If you are using the default you can probably skip that line.
In either case, you should change the working directory to the path in which you have Redis built so that the default configuration is used, relative to the server command.
Overall, the LaunchDaemon is simple despite being foreign to most of us used to creating init.d scripts. I'll have one up for MongoDB shortly.
- Garb Ruby Wrapper for the Google Analytics Data Export API
- Mongolytics Rails Request and Session Analytics Stored in MongoDB
- SimplestAuth Very Simple Authentication for Rails using BCrypt, developed at Viget
- net/simple Simple wrapper around net/ssh and net/scp, inspired by Capistrano
- Information Schema Collection of DataMapper Resource Classes to access PostgreSQL Information Schema Views
- ICS Winepos Winepos Site, a Webby Project for Innovative Computer Solutions
- GA Debug Script to Debug Google Analytics in Development with console logs and a popup message box