[chef] Re: Re: Re: tomcat6 errors


Chronological Thread 
  • From: Charles Sullivan < >
  • To:
  • Subject: [chef] Re: Re: Re: tomcat6 errors
  • Date: Mon, 6 Sep 2010 09:35:40 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=PZTGS19k3lx8KXTj4cg9P8jbnAvpnH17AJiTirWsfa/uRHV3vgu1TOynJawXEzHQQp 3Ep9dq0cHE4ilp2LiVs7pKW3NqyaObSBav7FH4KOlsxpVWaU1pD1YLzg2WjvlUUjDlDS 5hA2Pj8w9ay2ZjvOc7b3RJ3PGJOW7WPa4+XKI=

It wasn't tested well with Ubuntu and makes some assumptions that are only true on other distributions. 

The following needs to be at the very top of the recipe for Ubuntu.  Note that the template and cookbook_file resources were moved from another section of the recipe for order of operations purposes. 

https://gist.github.com/a435155e5f35bc7526a4

Let me know if that doesn't work for you.  I also modified my Tomcat cookbook to use 'jsvc' so that Tomcat would daemonize properly.  If you don't, you'll have to start Tomcat outside of your chef run or manage it with something like 'runit'.

--Charlie


On Mon, Sep 6, 2010 at 8:22 AM, Ran Tavory < "> > wrote:

Ubuntu 10.4

On Sep 6, 2010 4:10 PM, "Charles Sullivan" < " target="_blank"> > wrote:
> What distro are you using?
>
> Sent from my iPhone
>
> On Sep 6, 2010, at 6:09 AM, Ran Tavory < " target="_blank"> > wrote:
>
>> It looks like maybe the tomcat6 cookbook is broken http://cookbooks.opscode.com/cookbooks/tomcat6
>> When I run it I see No such file or directory - /etc/init.d/tomcat6
>> status
>> So it looks like the cookbook is attempting to check tomcat's status
>> before tomcat is installed and so it fails.
>> The full log is here http://pastebin.com/g5u6C9s0
>>
>> I'm a newbe so, you know, if it's my bad let me know....
>> --
>> /Ran
>>




--
Charles Sullivan
">




Archive powered by MHonArc 2.6.16.

§