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 < " target="_blank"> > 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
>>
Archive powered by MHonArc 2.6.16.