...
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 |