Hello ~ <br><br>I am using the Capistrano recipe outlined in this post to restart my backgroundrb server:<br><br><a href="http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html">http://rubyforge.org/pipermail/backgroundrb-devel/2007-February/000718.html
</a><br><br>My Version:<br>~~~~~~~~~~~~<br>task :before_restart, :roles => :app do<br> restart_backgroundrb<br>end<br><br>task :start_backgroundrb, :roles => :app do<br> sudo "nohup /var/www/rails/#{application}/current/script/backgroundrb/start "
<br>end<br><br>task :stop_backgroundrb, :roles => :app do<br> sudo "kill -9 `cat /var/www/rails/#{application}/current/log/backgroundrb.pid` 2>/dev/null; true"<br>end<br><br>task :restart_backgroundrb, :roles => :app do
<br> stop_backgroundrb<br> start_backgroundrb<br>end<br>~~~~~~~~~~~~<br><br>The backgroundrb server is stopped and started but hangs at the start_backgroundrb task. Capistrano shows:<br><br> * executing task start_backgroundrb
<br> * executing "sudo nohup /var/www/rails/*************/current/script/backgroundrb/start"<br> servers: ["host"]<br> [host] executing command<br> ** [out :: host] nohup: ignoring input and appending output to `nohup.out'
<br><br>It will hang there and not restart the main web app process. I updated my gems to see if this was a version issue, but am experiencing the same problem. I also tried running this task :after_restart, the web app is successfully restarted, but it still hangs.
<br><br>Thanks in advance for any ideas on how to fix this.<br><br>~ Ben<br><br>-- <br>Ben Reubenstein<br>303-947-0446<br><a href="http://www.benr75.com">http://www.benr75.com</a>