aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/install.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 07:19:06 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 08:05:02 +0100
commitcabb405c67b9dae13be312198640bb10ce5a07a3 (patch)
tree243e106096b2df0f27074234d6acd56d518fb407 /service/install.go
parentmanager: wire up config migrator (diff)
downloadwireguard-windows-cabb405c67b9dae13be312198640bb10ce5a07a3.tar.xz
wireguard-windows-cabb405c67b9dae13be312198640bb10ce5a07a3.zip
service: track tunnel service status
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/install.go')
-rw-r--r--service/install.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/install.go b/service/install.go
index 32131f94..9a57504f 100644
--- a/service/install.go
+++ b/service/install.go
@@ -160,8 +160,8 @@ func InstallTunnel(configPath string) error {
if err != nil {
return err
}
- service.Start()
- return service.Close()
+ go trackTunnelService(name, service)
+ return service.Start()
}
func UninstallTunnel(name string) error {