4

On our linux boxes, we have multiple users who run tomcat.

Currently we are using process kill commands to kill the respective user's tomcat , instead of using shutdown.sh

Are there any downsides of using this approach ?

2 Answers 2

8

It depends on what kill signal you are using:

That said, tomcat has its own mechanism to shutdown properly, namely an RMI call which you should be using, either directly or by using your operating system's interface: service, start, systemctl or any other.

If you can't do that for whatever reason, you could use some help from a wrapper like tanukiwrapper or supervisord, which also has a web frontend.

2
  • What difference would be there if we use kill -15 and shutdown script ? Mar 1, 2014 at 12:37
  • The answer is above, you need to check what the shutdown script does (hint: it does not kill -15 the tomcat process)
    – dawud
    Mar 1, 2014 at 12:39
4

There is no difference in behaviour if you use Tomcat's shutdown script or use kill -15. The end result is exactly the same - a clean shutdown. The only difference is a slight difference in the code path that starts the shutdown process.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .