Hi all,

I think I have a simple question for you but really important for me : How to 
prevent Jenkins to change its PID after a Jenkins restart (ex: Jenkins update 
or plugin update)?
I really need this behavior to have working daemon scripts because they use the 
PID to know the status of the Jenkins process. If the Jenkins PID changes, the 
script is lost.

For information, here is the command the deamon use to run Jenkins:
/usr/bin/daemon --name=myjenkins --inherit --env=JENKINS_HOME=/home/myjenkins 
--output=/var/log/ci/myjenkins.log --pidfile=/var/run/jenkins/myjenkins.pid -- 
/usr/bin/java -jar /home/myjenkins/jenkins.war 
--webroot=/home/myjenkins/.jenkins/war --httpPort=17001 --ajp13Port=-1 
--httpsPort=-1 --prefix=/myjenkins

Thanks for any answer.

Berst regards,
Christophe.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to