Passing parameters to init scripts?
So I know how to start a service using the service type, but what if I need to pass a parameter to the init script that the service starts from?
We have a Tomcat installation that either listens on port 8081 or 8181 depending on what parameter you pass to the init script. We typically run both of these tomcat instances at once calling the script with "service tomcat start 0" and then "service tomcat start 1" The 1 or 0 is passed through the to server.xml of tomcat to run it on the specified port.
I know I can recreate the init scripts to find a way around this, but I'm hoping there's a way to pass a parameter to the init script through puppet.