One of the problems we had running on for a very long time was Tomcat stopping on a deploy to a Linux server once the deploy job had completed. This was working fine on the Windows servers so I was stumped as to the issue.
A little searching on the net led to these links and solution:
http://wiki.hudson-ci.org/display/HUDSON/Spawning+processes+from+build
http://wiki.hudson-ci.org/display/HUDSON/Post+build+task
The bottom line of this is that when you configure a build or deploy that is experiencing this issue, just choose 'Post build task' from the 'Post-build Actions' section in the job configuration.
To get the Tomcat server started on the dev Linux boxes I then just needed this in the 'Script' box:
/opt/apache-tomcat-6.0.20/bin/startup_nohup.sh
Now the Tomcat service stays running when the Hudson job completes
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment