Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
jetty restart on RHEL
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jonathan Rochkind  
View profile  
 More options Sep 27 2012, 3:52 pm
From: Jonathan Rochkind <rochk...@jhu.edu>
Date: Thu, 27 Sep 2012 15:52:35 -0400
Local: Thurs, Sep 27 2012 3:52 pm
Subject: jetty restart on RHEL
Has anyone managed to get capistrano to restart a jetty on a RHEL server?

I can not get it to work, and I'm not sure why. However capistrano is
executing commands, the jetty that gets started up seems somehow tied to
the capistrano session, and ends up getting killed when cap logs out of
the remote server.

Just trying (run "#{sudo} /etc/init.d/jetty restart").  No errors are
reported, but jetty is not running. If I add a "&& sleep 60" on the end,
then jetty is started up and runs as long as the sleeping is happening,
then it's gone.

I've tried setting :pty => true and :shell => true, neither/both seems
to make a difference.

Anyone managed to figure this out, or have any clues?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Courtnage  
View profile  
 More options Sep 27 2012, 4:01 pm
From: Todd Courtnage <t...@chaordix.com>
Date: Thu, 27 Sep 2012 14:01:28 -0600
Local: Thurs, Sep 27 2012 4:01 pm
Subject: Re: [capistrano] jetty restart on RHEL

I struggled with something like this as well.  In my case, it was strying
to start solr (using jetty). The difference is, we start it using phing,
but here's how I did it:

> nohup phing solr-start > /dev/null 2> /dev/null

The trick seemed to be starting it with nohup and redirecting stdout and
stderr to /dev/null.  This allows it to disconnect from the capistrano
session and continue running in the background.

--
*Todd Courtnage*
Director of Cloud Computing

Chaordix – Crowd Intelligence

email: t...@chaordix.com
office: +1.403.263.2655
toll free: +1.866.263.7775
mob: + 1.403.975.1591

http://www.chaordix.com

Follow us on twitter: http://twitter.com/chaordix
Our blog: http://www.chaordix.com/blog/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Rochkind  
View profile  
 More options Sep 27 2012, 4:19 pm
From: Jonathan Rochkind <rochk...@jhu.edu>
Date: Thu, 27 Sep 2012 16:19:03 -0400
Local: Thurs, Sep 27 2012 4:19 pm
Subject: Re: [capistrano] jetty restart on RHEL
Huh, I guess I'll mess with that. Anyone know why this seems to be
neccesary with jetty, when it's not with other init.d scripts to start
deamon?  It's too bad to lose the output of the /etc/init.d/jetty in the
cap output.

On 9/27/2012 4:01 PM, Todd Courtnage wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Rochkind  
View profile  
 More options Sep 27 2012, 5:27 pm
From: Jonathan Rochkind <rochk...@jhu.edu>
Date: Thu, 27 Sep 2012 17:27:03 -0400
Local: Thurs, Sep 27 2012 5:27 pm
Subject: Re: [capistrano] jetty restart on RHEL
Okay, I doubt I'll ever get to the bottom of it, but I'm trying to
figure out what's going on in the code anyway, which is leading me to
reading Net::SSH api docs, etc. I probably wont' figure out anything
useful out, but, hey, it's an education.

Can anyone familiar wtih the capistrano code tell me where in the cap
code Net::SSH::Sessions get opened, and, if it isn't being opened in
block form that closes itself after the block, where they get closed?
Having trouble finding it. Thanks if anyone can give me a tip!

On 9/27/2012 4:19 PM, Jonathan Rochkind wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rafa García  
View profile  
 More options Oct 8 2012, 5:02 am
From: Rafa García <conta...@rafagarcia.net>
Date: Mon, 8 Oct 2012 11:02:18 +0200
Local: Mon, Oct 8 2012 5:02 am
Subject: Re: [capistrano] jetty restart on RHEL

You will find in lib/capistrano/configuration/connections.rb the methods
connect_to that end calling SSH.connect (lib/capistrano/ssh.rb).

There're two instance connect_to methods (for connecting w/o gateways):
  -
Capistrano::Configuration::Connections::DefaultConnectionFactory#connect_to
  -
Capistrano::Configuration::Connections::GatewayConnectionFactory#connect_to

I hope it helps a little bit, despite it's a bit late.

Regards

2012/9/27 Jonathan Rochkind <rochk...@jhu.edu>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »