I am trying nohup and ampersand (&) but no luck.

If i use:

run "nohup /opt/jboss/jboss-eap-4.3/jboss-as/bin/run.sh > /tmp/
my_jboss.start.log", :pty => true

Then it is creating the my_jboss.start.log file and starting the
server but it doesn't return the capistrano console back to me. If I
press Ctrl+c the server keeps running but I get following error:

/usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/capistrano/
command.rb:41:in `sleep': Interrupt
        from /usr/local/lib/ruby/gems/1.8/gems/capistrano-1.4.1/lib/
capistrano/command.rb:41:in `process!'

If i use the ampersand (&) at the end like below:

run "nohup /opt/jboss/jboss-eap-4.3/jboss-as/bin/run.sh > /tmp/
my_jboss.start.log &", :pty => true

then an empty my_jboss.start.log file creates, I get my capistrano
console back but the server doesn't start.

Can anyone please help me where I am making wrong?

--~--~---------~--~----~------------~-------~--~----~
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.co.uk/group/capistrano?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to