mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-01 02:46:52 +00:00
change nps service
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user