7up74g
Last Updated: February 25, 2016
·
2.253K
· spanneberg

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,
  }

1 Response
Add your response

4900

In case of Debian/Ubuntu it much easier to manage Tomcat as Debian daemon)

over 1 year ago ·