Skip to content
Permalink
Browse files

[JENKINS-39231] - Integrate the Runaway Process Killer extension to t…

…erminate runaway processes
  • Loading branch information
oleg-nenashev committed Feb 16, 2017
1 parent bce0071 commit 8dcf02da16e7c95c67c7de95fd078089a8ecf8df
Showing with 16 additions and 0 deletions.
  1. +16 −0 src/main/resources/org/jenkinsci/modules/windows_slave_installer/jenkins-slave.xml
@@ -51,5 +51,21 @@ THE SOFTWARE.

<onfailure action="restart" />

<!--
In the case WinSW gets terminated and leaks the process, we want to abort
these runaway JAR processes on startup to prevent "Slave is already connected errors" (JENKINS-28492).
-->
<extensions>
<!-- This is a sample configuration for the RunawayProcessKiller extension. -->
<extension enabled="true"
className="winsw.Plugins.RunawayProcessKiller.RunawayProcessKillerExtension"
id="killOnStartup">
<pidfile>%BASE%\jenkins_agent.pid</pidfile>
<stopTimeout>5000</stopTimeout>
<stopParentFirst>false</stopParentFirst>
</extension>
</extensions>

<!-- See referenced examples for more options -->

</service>

0 comments on commit 8dcf02d

Please sign in to comment.
You can’t perform that action at this time.