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

Gracefully stop wsl-ssh-agent-gui from command line #7

Closed
kai2nenobu opened this issue Nov 19, 2019 · 4 comments
Closed

Gracefully stop wsl-ssh-agent-gui from command line #7

kai2nenobu opened this issue Nov 19, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@kai2nenobu
Copy link

I'm creating a chocolatey package for wsl-ssh-agent (package source). I want to gracefully stop wsl-ssh-agent-gui process before updating wsl-ssh-agent package.

When I forcibly stop wsl-ssh-agent-gui by powershell Stop-Process cmdlet, socket file and lock file generated by wsl-ssh-agent-gui (like ssh-126447479.sock, wsl-ssh-agent-gui.lock) remain in %TEMP% folder.

Is there a good method to gracefully stop wsl-ssh-agent-gui process from command line (powershell or cmd)?

@rupor-github
Copy link
Owner

Presently I do not think so - but I do not think you actually need it. "systray_temp_icon" file in tmp directory is not being cleaned anyways and .lock file will be safely overwritten next time program starts. So the only actual garbage you'd see could be .sock file. If this sock file has "well known" name - it will be overwritten next time program starts and if "default" name is used - it would leave a single 0 length file in tmp directory - no harm there. I would take a look if it is actually possible to intercept termination signal in gui app those days and do some additional cleanup, but I do not think this is critical for what you are doing.

@rupor-github rupor-github self-assigned this Nov 19, 2019
@rupor-github rupor-github added the enhancement New feature or request label Nov 19, 2019
@kai2nenobu
Copy link
Author

Thanks to reply.
I'm glad to hear that garbage has no harm.

@rupor-github rupor-github added this to the next_major_release milestone Nov 28, 2019
@Bnaya
Copy link

Bnaya commented Aug 17, 2020

Where can i find this package? :)
Thanks!!

@kai2nenobu
Copy link
Author

Where can i find this package? :)
Thanks!!

You can find a package here. See README fore more details.

This is an unofficial package (means not made by @rupor-github). So, if you find some problems about this package, post a issue in package repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants