Skip to content

Instantly share code, notes, and snippets.

@retr0h retr0h/gist:9203
Created Sep 6, 2008

Embed
What would you like to do?
##
# 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
You can’t perform that action at this time.