retr0h (owner)

Revisions

gist: 9203 Download_button fork
public
Public Clone URL: git://gist.github.com/9203.git
Text
1
2
3
4
5
6
7
8
9
10
11
12
##
# 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/