Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Bring the note from the comment into an article itself

...

This can be done as a parameter to the "java" binary when starting Jenkins:

Code Block

 java -Dhudson.util.ProcessTree.disable=true -jar jenkins.war

...

A convenient way to achieve that is to change the environment variable BUILD_ID which Jenkins's ProcessTreeKiller is looking for. This will cause Jenkins to assume that your daemon is not spawned by the Jenkins build. For example:

Code Block

BUILD_ID=dontKillMe /usr/apache/bin/httpd
Info

In case of Jenkins Pipeline use JENKINS_NODE_COOKIE instead of BUILD_ID