Cloudkul Support

How to create a tomcat server upstart script ?

Suppose my tomcat working directory is /opt/tomcat. To start the tomcat service I need to go to the /opt/tomcat/bin directory and run the script and for shutdown, I need to run script. To run the tomcat service through service command I need to create a upstart script.


create a new file /etc/init.d/tomcat and copy the following contents.

After saving the file make it executable and make it available at boot time.

Now, you can use “service tomcat (start|stop|restart)” command for managing tomcat service.

Is this article is helpful?

People like and 1 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request