Update restart_tomcat.sh

remove code duplicate.