Proper use of processtreekiller

27 views
Skip to first unread message

Eric Wood

unread,
Jan 22, 2015, 11:20:19 AM1/22/15
to Jenkinsci-users
I'm attempting to start a tomcat server via the publish over ssh plugin.  

I call a shell script as follows:

        sudo nohup /apps/Config/usr/local/bin/ec2-init env start > /dev/null 2>&1 & 

This script in turn calls the following:  ec2-init > tomcat_sdb > startup.sh > catalina.sh.

Our IT guy set the following in the script tomcat_sdb:
    

    # Protection from Jenkins ProcessTree Killer
    BUILD_ID=dontKillMe
    export JAVA_HOME JAVA_OPTS PATH CUSTID APPID INSTANCEID JBOSS_SERVER BUILD_ID
 
As soon as the Jenkins job terminates I can see the catalina process die.

What is the proper way to invoke this environment variable to keep the tomcat process alive after Jenkins terminates?


Eric Wood

unread,
Jan 26, 2015, 9:43:46 AM1/26/15
to jenkins...@googlegroups.com
Hi:

We resolved this my running tomcat as a daemon process. There are instructions at the tomcat site regarding how to do this.  Once tomcat was running as a daemon process, when the Jenkins job terminated that started the tomcat application server, the tomcat application server stayed running.



--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1423634528.3086904.1421943611888.JavaMail.yahoo%40jws100100.mail.ne1.yahoo.com.
For more options, visit https://groups.google.com/d/optout.


Reply all
Reply to author
Forward
0 new messages