<p>Our project uses Cruise Control to both build and hot deploy a web application to a remote server (via FTP) running Tomcat in the form of a .war file.  Unfortunately, "hot" deploys don't appear to work properly, causing us to reboot Tomcat in response to each deployment.  We would really like to do this auto-magically, much like the build itself.  Is there an easy way to do this?</p>

<p>Side note: both machines are running Windows (XP or server, I think).</p>

<p>Side note 2: Performance doesn't really matter.  This is an integration box.</p>

if you have regularly scheduled builds you could easily put something in the cron like this
```
```
crontab -e
```
```
then stop tomcat at say 1:30 am
```
```
30 1 * * * ./path_to_tamcat/bin/catalina.sh stop
```
```
then start it up again 2 mins later
```
```
32 1 * * * ./path_to_tamcat/bin/catalina.sh start
```
```
granted this isn't the best for irregular deployment, but you could easily have regular deployment with scheduled restart.