The following bash script file can be used on Linux instances to startup a Tomcat server as a service. The script does need some minor modifications to suit your specific instance of Linux. The following two variables must be changed:
1. The JAVA_HOME variable must point to an installed version of java on your system.
2. The tomcat_home variable must pouint to an installed Tomact server on your system
Bash script sample:
* 鳥哥 Linux 私房菜 > 認識系統服務 (daemons)