André Warnier wrote:
Potri Raaja wrote:
I need to restart tomcat at the specified time using crontab. Please let
me know how to do that.

Only if you tell us at least under which platform, and the version of Tomcat this applies to.

Potri,

First, you must know the shell command to restart the Tomcat. That can be, depending on your distro, something like:

  /etc/init.d/tomcat restart

After that, you just need to add the appropriate line to crontab file (usually /etc/crontab). Something like:

  00 04 * * * root /etc/init.d/tomcat restart

Which restarts Tomcat in specified time under specified user (here: root at 04:00).

BTW, Andre is right, it is always good idea to provide more information about your OS, version and configuration to get the best answer at the mailing list.

Regards,
Ognjen


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to