Difference between two ways of installing tomcat as a service (Linux)
- by varesa
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?