You can simulate that by trying: ssh u...@my-server 'sudo /etc/init.d/nginx start'
(all one line) and seeing how it reacts, if you get your terminal back - we might have a cap bug… otherwise nginx might not be dæmonising correctly On 6 September 2010 20:36, Stewart <[email protected]> wrote: > Hello, > > I am running nginx in production. I have the following task. > > [:stop, :start, :restart, :reload].each do |action| > desc "#{action.to_s} nginx server" > task action, :roles => :web do > run "#{sudo} /etc/init.d/nginx #{action.to_s}" > end > end > > When ever the restart task runs cap just stops. > > * executing `deploy:restart' > * executing "sudo -p 'sudo password: ' /etc/init.d/nginx restart" > servers: ["app.net"] > [app.net] executing command > ** [out :: app.net] Restarting nginx daemon: nginx > ** [out :: app.net] . > > Cap will just sit there till I Ctrl-C the task. The command works on > the server and seems to be working when executed by cap however like a > bad relationship cap does not seem to "move on" to the next task :) > > ~/code/rails/app (deployment)$ ruby -v > ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.8.0] > > ~/code/rails/app (deployment)$ cap --version > Capistrano v2.5.19 > > Thanks in advance for any help. > > -- > * You received this message because you are subscribed to the Google Groups > "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected]<capistrano%[email protected]>For > more options, visit this group at > http://groups.google.com/group/capistrano?hl=en -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en
