I'm testing out capistrano 2 on a test box.  It's fedora 6 with
lighttpd and fastcgi.

The standard reaper scripts weren't much use to me as I'm running
lighttpd/fastcgi.  I changed task :restart in deploy.rb to the
following:

  task :restart, :roles => :app, :except => { :no_release => true } do
    #invoke_command "#{current_path}/script/process/reaper", :via =>
run_method
    sudo "/etc/init.d/lighttpd restart"
  end

When doing a "cap deploy" the deploy hangs right after restarting
lighttpd.  Eventually if I hit crtl-c I get the output down below the
"** [out..." lines.  Any ideas what might be causing it to hang?

  * executing `deploy:restart'
  * executing "sudo /etc/init.d/lighttpd restart"
    servers: ["localhost"]
    [localhost] executing command
 ** [out :: localhost]
 ** [out :: localhost] Stopping lighttpd:
 ** [out :: localhost]
 ** [out :: localhost] [
 ** [out :: localhost]
 ** [out :: localhost] OK
 ** [out :: localhost]
 ** [out :: localhost] ]
 ** [out :: localhost]
 ** [out :: localhost]
 ** [out :: localhost] Starting lighttpd:
 ** [out :: localhost]
 ** [out :: localhost] [
 ** [out :: localhost]
 ** [out :: localhost] OK
 ** [out :: localhost]
 ** [out :: localhost] ]
 ** [out :: localhost]
 ** [out :: localhost]
/usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/capistrano/command.rb:
49:in `sleep': Interrupt
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/command.rb:49:in `process!'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/command.rb:36:in `loop'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/command.rb:36:in `process!'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/command.rb:11:in `process'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/configuration/actions/invocation.rb:52:in `run'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/configuration/connections.rb:135:in `execute_on_servers'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/configuration/actions/invocation.rb:50:in `run'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/configuration/actions/invocation.rb:74:in `sudo'
         ... 19 levels...
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/cli/execute.rb:14:in `execute'
        from /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/bin/cap:4
        from /usr/bin/cap:18:in `load'
        from /usr/bin/cap:18


--~--~---------~--~----~------------~-------~--~----~
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/capistrano
-~----------~----~----~----~------~----~------~--~---

Reply via email to