Running Tomcat as a service on Linux

If you want to automatically start Tomcat when your system boots and manage it using the service command, you must create an initialization script.

If you want Tomcat to start automatically when your system boots, you need to add tomcat to your runlevel as follows:

Apache and Tomcat can be started in any order, and each can be restarted independently of each other.

Attachment: startup-script.txt