2009-03-13 13 views

cevap

2

bu GIST bir göz atın sorunu çözer: https://gist.github.com/matthuhiggins/668744

+0

Geç için teşekkürler, ama iyi tavsiyeler! – MikeN

+0

Link bir spam'e yol açıyor gibi görünüyor. – Jirapong

+0

Belki blog bitti. Web ağı üzerinde alacağım ve buna benzer bir yazı yazacağım. –

1

Capistrano'yu tanımıyorsunuz, ancak memcached süreci öldürüp yeni bir tane üretemez misiniz? Büyük olasılıkla parçalanma kaldırmak için daha iyi.

+0

capistrano olan dağıtım otomasyon aracı, bu yeniden başlatma da olur böylece Capistrano tarafından yapılmalıdır. – vartec

4
+0

Bağlandığınız Capistrano tarifi ile memcached başlayamadım. Sonra bunu buldum: http://www.ruby-forum.com/topic/83485. Bu benim için çalıştı. – mj1531

0

Bu Susan Potter oldukça iyi görünüyor tarafından https://gist.github.com/rays/154570

# 2007 Copyright Susan Potter <me at susanpotter dot net> 
# You can read her software development rants at: http://geek.susanpotter.net 
# Released under CreativeCommons-attribution-noncommercial-sharealike license: 
# http://creativecommons.org/licenses/by-nc-sa/1.0/ 
namespace :memcached do 
    desc "Restart the Memcache daemon" 
    task :restart, :roles => :app do 
    deploy.memcached.stop 
    deploy.memcached.start 
    end 

    desc "Start the Memcache daemon" 
    task :start, :roles => :app do 
    invoke_command "memcached -P #{current_path}/log/memcached.pid -d", :via => run_method 
    end 

    desc "Stop the Memcache daemon" 
    task :stop, :roles => :app do 
    pid_file = "#{current_path}/log/memcached.pid" 
    invoke_command("killall -9 memcached", :via => run_method) if File.exist?(pid_file) 
    end 
end 
İlgili konular