Skip to content

[JENKINS-39231] WinSW: Automatically terminate runaway processes in Windows services #17629

@jenkins-infra-bot

Description

@jenkins-infra-bot

In Jenkins projects we have many users complaining that the slave/agent is "already connected", because they have a runaway slave/agent process. It happens when WinSW gets terminated without executing the process shutdown logic (force kill) or when WinSW fails to terminate the process.

As a part of WinSW 2.0, it would be great to create a logic, which...

  • records PID of the created process to the disc
  • performs status check of the previously spawned process upon restart
  • terminates the runaway process if required

It can be done via WinSW 2 "plugin"
Issue: winsw/winsw#125


Originally reported by oleg_nenashev, imported from: WinSW: Automatically terminate runaway processes in Windows services
  • assignee: oleg_nenashev
  • status: Resolved
  • priority: Major
  • component(s): core
  • label(s): winsw
  • resolution: Fixed
  • resolved: 2017-03-13T16:01:07+00:00
  • votes: 4
  • watchers: 7
  • imported: 2025-11-24
Raw content of original issue

In Jenkins projects we have many users complaining that the slave/agent is "already connected", because they have a runaway slave/agent process. It happens when WinSW gets terminated without executing the process shutdown logic (force kill) or when WinSW fails to terminate the process.

As a part of WinSW 2.0, it would be great to create a logic, which...

  • records PID of the created process to the disc
  • performs status check of the previously spawned process upon restart
  • terminates the runaway process if required

It can be done via WinSW 2 "plugin" Issue: winsw/winsw#125

1 attachment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions