Service script for Tomcat

Quick script to allow starting and stopping tomcat from the service command.

Create a script called tomcat7  in /etc/init.d  like so:

Here’s what goes into the script:

The commands start, stop, debug and restart can be run via service. Example:

Then apply appropriate permissions:


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.