Sha256: f23ce604d6576259e6bc4c22daabf0d2d3b0632ec2bff55e3586c30ffcd735dd
Contents?: true
Size: 756 Bytes
Versions: 5
Compression:
Stored size: 756 Bytes
Contents
Capistrano::Configuration.instance(true).load do set :memcache_init_path, "/etc/init.d/memcached" namespace :memcache do desc "Stops the memcache server" task :stop, :roles => :app do puts "Stopping the memcache server" try_sudo "nohup /etc/init.d/memcached stop &" end desc "Starts the memcache server" task :start, :roles => :app do puts "Starting the memcache server" try_sudo "nohup /etc/init.d/memcached start &" end desc "Restarts the memcache server" task :restart, :roles => :app do puts "Restarting the memcache server" memcache.stop sleep(3) # sleep for 3 seconds to make sure the server has mopped up everything memcache.start end end end
Version data entries
5 entries across 5 versions & 2 rubygems