Linux * Tomcat

Restart Tomcat script

Here is a simple script that is tested on CentOS and Ubuntu. It will work on all other UNIX like platforms. You can make modifications to this script to restart any other services, for example apache. You can also use pgrep command instead of pidof command. # vi script.sh  ##Restart Tomcat## pidof javaif [ $? […]