tomcat - How to write shell script to restart tomcat7 automatically using cron? -


i new shell script,in company need restart application servers in production @ or before 12.30 pm everyday.can automate process shell script affect other application running on server.

thanks in advance

at last found answer restart tomcat automatically writing simple script , setting-up script on cron whatever time sequence need restart application server.

script

#! /bin/sh service=/etc/init.d/tomcat7

 $service restart 

cron job

30 12 * * * /root/restarttomacat.sh

it wont affect other applications.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -