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

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -