Manage Tomcat as Puppet service
Puppets service resource is really handy for managing all kind of services and notifying them in case of changes.
At first sight, one would think that this is not possible for an instance of Tomcat, but with a few more additions to your usual service declaration, this works as well (given the Tomcat resides under /opt/tomcat):
service { "tomcat" :
provider => "init",
ensure => running,
start => "/opt/tomcat/bin/startup.sh",
stop => "/opt/tomcat/bin/shutdown.sh",
status => "",
restart => "",
hasstatus => false,
hasrestart => false,
}
Written by Bastian Spanneberg
Related protips
1 Response
In case of Debian/Ubuntu it much easier to manage Tomcat as Debian daemon)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Puppet
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#