wow! thanks a lot! that actually seems to have done the trick. :-) On Friday, June 6, 2014 2:31:27 PM UTC-4, Patricia Wright wrote: > > Perhaps the reaper is killing you. > > At the end of a job, jenkins will kill of any process with the environment > variable BUILD_ID that matches that job. > > You can override that environment variable with something else (set > BUILD_ID='please do not kill me') before launching tomcat, etc... > Or you can turn off the process reaper in the slave. > > java -Dhudson.util.ProcessTree.disable=true -jar jenkins.war > > > > ------------------------------ > *From: *"Matt Wilson" <[email protected] <javascript:>> > *To: *[email protected] <javascript:> > *Sent: *Friday, June 6, 2014 12:37:22 PM > *Subject: *disown child process > > 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:>. > For more options, visit https://groups.google.com/d/optout > <https://urldefense.proofpoint.com/v1/url?u=https://groups.google.com/d/optout&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=P%2FDbhm7GMaM%2FtPTZjlK%2F8lebpERVSZcf2B%2BqCod7tGs%3D%0A&m=yAjTYcLWxb4oVx4BIV1A1j2fpnqrOqDOrAFO4Dyyd0k%3D%0A&s=55049699734b8a97bb9dded66423696d15a269e1193e3160cad19418b2d368ab> > . > >
-- 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.
