You don't mention which flavour of Linux but why not run Tomcat as a system
service/daemon and control it via your Jenkins job?

Richard.

On Saturday, June 7, 2014, Matt Wilson <[email protected]> wrote:

> I'm hoping someone has done this before and can offer a possible
> solution...
>
> I've got a Linux slave that I'm trying to setup to do a test deployment of
> a job.  Basically stop tomcat, add/deleting some war files and then restart
> tomcat.  Pretty straight forward stuff.  The problem I'm having is that
> when my jenkins slave shuts down at the completion of the job, my tomcat
> server also then shuts down.
> I know I could leave my jenkins slave up but I'd really rather not.
> I've tried "nohup", "&", and "disown".  no luck
> I've also tried changing the slave launch parameters i.e. adding sh -c
> ".... " no luck.
> I've also tried changing the tomcat start script to "nohup" rather than my
> jenkins job doing the "hohup".  still no luck.
>
> anybody have any ideas?
>
> Matt
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','jenkinsci-users%[email protected]');>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to