On 10/11/2011 08:28, Kaushal Shriyan wrote: > Hi, > > Is there a way to forcefully graceful restart tomcat server using bash > script via cron.Any sample bash script ?
Which is it: forceful or graceful? The two are not usually compatible. 'graceful' is found in Apache HTTPD: [the] signal causes the parent process to advise the children to exit after their current request (or to exit immediately if they're not serving anything). The parent re-reads its configuration files and re-opens its log files. As each child dies off the parent replaces it with a child from the new generation of the configuration, which begins serving new requests immediately. There is no equivalent for Tomcat. The Commons Daemon found in tomcat/bin/commons-daemon-native.tar.gz provides a service wrapper and /etc/init.d/ type sample script which may be useful. Why do you need to schedule Tomcat restarts? It is often a mitigation applied instead of resolving the cause of a memory leak. Better to find & fix the leak than leave it place. p > Regards, > > Kaushal > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > -- [key:62590808]
signature.asc
Description: OpenPGP digital signature