-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Question: What is the proper way to shutdown ksync #273
Comments
You probably want |
This does not work on Windows. |
Why was this closed? |
@BarryDrez A little more background here. Running I suspect that whatever you're using to launch the parent process is preventing the normal control of child processes, that's why you're having left overs left behind when it exits. I'm happy to help debug this with you, but as it isn't an internal ksync issue I've closed it so it's not in our development tracking. |
@timfallmk in its simplest form, this is the Java code I used to start ksync:
I understand your explanation, and I will look into an alternative solution. |
I'm less familiar with Windows (or Process Builder for that matter), but it's likely attaching its own process management to that process, which is interfering. You might find some inspiration from the way we deal with deamonization on other platforms. Also, it's easy to find (and cleanup) the child processes, by looking for which processes are using the ports given in the config (the *nix equivalent would be using |
Thank you. I will do some digging. |
I am starting ksync from Java using ProcessBuilder. Running ksync watch on Windows which starts ksync_windows_amd64.exe and 2 syncthing.exe(s). When I shut it down programmatically, the ksync_windows_amd64.exe goes away, byt the 2 syncthing.exe(s) remain. What is the proper command to stop watching?
The text was updated successfully, but these errors were encountered: