-
Notifications
You must be signed in to change notification settings - Fork 311
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
Win supervisor #2278
Win supervisor #2278
Conversation
anjmao
commented
May 21, 2020
- Add Windows supervisor service.
- Add Windows WireGuard tunnel. (Will need some changes in separate PR)
- Move common network utils to separate package to reuse for all platforms.
- Refactor myst process kill to be cross platform.
- No need to pass myst user for myst process startup as it now will be started from the app.
if err != nil { | ||
return fmt.Errorf("could not kill process %d: %w", proc.Pid, err) | ||
} | ||
state, err := proc.Wait() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we probably should not wait forever here..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no way to provide context or timeout to proc.Wait, kill is running in separate goroutine so it will not block the whole supervisor communaction.
6d7542a
to
b655d93
Compare
Codecov Report
@@ Coverage Diff @@
## master #2278 +/- ##
==========================================
- Coverage 47.93% 47.88% -0.05%
==========================================
Files 273 275 +2
Lines 12770 12790 +20
==========================================
+ Hits 6121 6125 +4
- Misses 6062 6077 +15
- Partials 587 588 +1
Continue to review full report at Codecov.
|
} | ||
|
||
func (c Config) valid() bool { | ||
return c.MystPath != "" && c.OpenVPNPath != "" | ||
return true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like not needed method?