aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tunnel/service.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tunnel/service.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tunnel/service.go b/tunnel/service.go
index dbf0dd6e..5c1cc13e 100644
--- a/tunnel/service.go
+++ b/tunnel/service.go
@@ -211,14 +211,14 @@ func (service *Service) Execute(args []string, r <-chan svc.ChangeRequest, chang
}
}()
- changes <- svc.Status{State: svc.Running, Accepts: svc.AcceptStop}
+ changes <- svc.Status{State: svc.Running, Accepts: svc.AcceptStop | svc.AcceptShutdown}
log.Println("Startup complete")
for {
select {
case c := <-r:
switch c.Cmd {
- case svc.Stop:
+ case svc.Stop, svc.Shutdown:
return
case svc.Interrogate:
changes <- c.CurrentStatus