Browse Source

change nps service

unknown 5 years ago
parent
commit
55a8466d83
1 changed files with 3 additions and 0 deletions
  1. 3 0
      cmd/nps/nps.go

+ 3 - 0
cmd/nps/nps.go

@@ -121,6 +121,9 @@ func (p *nps) Start(s service.Service) error {
 }
 func (p *nps) Stop(s service.Service) error {
 	close(p.exit)
+	if service.Interactive() {
+		os.Exit(0)
+	}
 	return nil
 }