Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Stopping Service #1027

Open
valainisgt opened this issue Mar 14, 2023 · 0 comments · May be fixed by #1028
Open

Error Stopping Service #1027

valainisgt opened this issue Mar 14, 2023 · 0 comments · May be fixed by #1028
Labels

Comments

@valainisgt
Copy link

I have wrapped a custom application with winsw. My application creates child processes which then go on to create child processes of their own. When the windows service is stopped, some of the child processes get orphaned and thus cannot be stopped.

Steps to reproduce

  1. Create an application that creates at least two levels of child processes below the main application.
  2. Wrap said application with winsw
  3. Install the service
  4. Start the service
  5. Wait for your two levels of child processes to spawn
  6. Stop the service

Environment

  • WinSW version: v3.0.0-alpha.11
  • WinSW package type: x64
  • Windows version: Server 2019
  • Wrapped executable and version: internal project

Possible Solution

It appears winsw takes a top down approach to stopping the process tree. I believe a bottom up approach will solve the issue.

I have attached the appropriate logs for my issue.
myapp.wrapper.log

@valainisgt valainisgt added the bug label Mar 14, 2023
@valainisgt valainisgt linked a pull request Mar 14, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant