change nps service

pull/310/head
unknown 2019-12-15 16:16:49 +08:00
parent 0d94b7c39e
commit 55a8466d83
1 changed files with 3 additions and 0 deletions

View File

@ -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
}