[chef] Re: RE: Re: Using Chef To Determine If JBoss AS Is Started


Chronological Thread 
  • From: Gavin Lam < >
  • To:
  • Subject: [chef] Re: RE: Re: Using Chef To Determine If JBoss AS Is Started
  • Date: Fri, 7 Oct 2011 15:03:49 -0400

Thanks for all the replies.

Aaron: I can't really use the PID since the file is created once the JBoss start command is executed but that doesn't necessarily means that it has started successfully.

Adam: JBoss doesn't ship with service scripts--none that I know of at least. However, we did create one, and I can successfully use Chef to start and stop the service. However, after the service is started, I need to make sure that no deployment errors occurred before going to the next step.

Peter: That's an interesting idea. I'm going to have to think about it and see which ports we can check to make sure everything is working properly.



On Fri, Oct 7, 2011 at 2:35 PM, Peter Crossley < "> > wrote:
We use Jboss and chef and I recommend using runit + checking a service on a port once jboss has started to tell if the server is functional yet.  Since depending on your service it may take longer to initialize depending on if the application is set to run on init of Jboss AS.

-Pete


-----Original Message-----
From: Adam Jacob [mailto: "> ]
Sent: Friday, October 07, 2011 11:14 AM
To: ">
Subject: [chef] Re: Using Chef To Determine If JBoss AS Is Started

Does it ship with normal service scripts? Does "service jboss start/stop/restart" work, for example?

Adam

On Fri, Oct 7, 2011 at 10:30 AM,  < "> > wrote:
> Hi,
>
> Is there a way for Chef to know when JBoss AS is started successfully?
> The only way I can think of is to search the JBoss log file for the
> "started" indicator, but I'm not sure how that can be done with Chef.
> I'm completely new to Chef and I'm still learning the terminology and syntax. Any help is appreciated. Thanks.
>
> Gavin
>



--
Opscode, Inc.
Adam Jacob, Chief Product Officer
T: (206) 619-7151 E: ">




Archive powered by MHonArc 2.6.16.

§