## # Start daemons. config.after_initialize do unless $0.match(/rake/) or (defined? DaemonMemcache and DaemonMemcache.instance.running?) DaemonMemcache.instance.start rescue nil at_exit do DaemonMemcache.instance.stop rescue nil end end end ### Trackback: http://geminstallthat.wordpress.com/2008/09/06/controlling-memcached-with-phusions-daemon_controller/