Impressum / Imprint

SCGI and SwitchTower

Posted on September 23, 2005

SwitchTower task for restarting scgi processes:

1
2
3
4
5
6

    desc "Restart scgi handlers"
    task :restart, :roles => :app do
      run "cd #{current_path}; script/scgi_rails stop -f #{shared_path}/scgi-children.yml || true"
      run "cd #{current_path}; script/scgi_rails start -e production -h 127.0.0.1 -p 9999 -c 3 -f #{shared_path}/scgi-children.yml; echo Done."
    end