LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Ruby/Rails (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=20)
-   -   Capistrano Recipes (a working restart?) (http://www.litespeedtech.com/support/forum/showthread.php?t=1426)

rubyjuice 10-16-2007 07:33 PM

Capistrano Recipes (a working restart?)
 
Anyone have a working Capistrano recipe? I'm currently using:

task :restart, :roles => :app do
sudo "#{lsws_cmd} restart"
end

Unfortunately, on my first restart attempt, Capistrano returns an error:

* executing "sudo /opt/lsws/bin/lswsctrl restart"
servers: ["test.local"]
[test.local] executing command
** [out :: test.local]

The last line is unexpected. For a period of about 5 minutes after the first restart attempt, it completes successfully with the final expected line of:

[test.local] executing command

Anyone know what's going on? Or, better yet, do you have a working recipe?

jmackin 04-28-2009 04:42 PM

I had the same problem. I had to wrap the namespace :deploy around my task in order for Capistrano to ommit the use of the Reaper.

Code:

namespace :deploy do
  task :restart, :roles => :app do
    sudo "#{lsws_cmd} restart"
  end
end

Hope that helps.

JM


All times are GMT -7. The time now is 04:28 AM.