Difference between two ways of installing tomcat as a service (Linux)

Posted by varesa on Server Fault See other posts from Server Fault or by varesa
Published on 2012-09-16T20:47:02Z Indexed on 2012/09/16 21:40 UTC
Read the original article Hit count: 181

Filed under:
|
|
|

I am installing tomcat on a linux server, and would want it to be available as a service. I have found two different ways to achieve this.

The first one is to copy the daemon.sh from $CATALINA_HOME/bin to /etc/init.d, and the other one I have seen is to create a simple init script that class $CATALINA_HOME/bin/startup.sh, etc. Startup.sh calls catalina.sh.

The contents of the daemon.sh and startup.sh look very similar (at least for the env variables, and stuff like that). Daemon.sh calls jsvc in the end. Catalina.sh calls java.

What is the (practical) difference between using the two of these when setting up tomcat as a service?

© Server Fault or respective owner

Related posts about tomcat

Related posts about setup