Create a gist now

Instantly share code, notes, and snippets.

##
# 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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment