Created
September 6, 2008 22:33
-
-
Save retr0h/9203 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# 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