-
-
Save CharlieSu/a435155e5f35bc7526a4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cookbook_file "/etc/init.d/tomcat6" do | |
source "tomcat6" | |
mode 0755 | |
owner "root" | |
group "root" | |
end | |
template "/usr/bin/dtomcat6" do | |
source "dtomcat6.erb" | |
mode 0755 | |
owner "root" | |
group "root" | |
end | |
service "tomcat6" do | |
case node[:platform] | |
when "centos" | |
service_name "tomcat6" | |
else | |
# name "tomcat" | |
end | |
action :nothing | |
supports :status => false, :start => true, :stop => true, :restart => true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
so what should I put in templates/dtomcat.erb?
I get this when I run:
ERROR: Re-raising exception: Chef::Exceptions::FileNotFound - cookbook tomcat6 does not contain file templates/dtomcat6.erb