Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question

2 Answers 2

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.

share|improve this answer
    
What difference would be there if we use kill -15 and shutdown script ? –  Novice User Mar 1 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 at 12:39

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.