mirror of
https://github.com/ehang-io/nps.git
synced 2026-11-01 01:02:12 +08:00
change nps service
This commit is contained in:
1 parent
0d94b7c39e
commit
55a8466d83
1 file changed
+3
@@ -121,6 +121,9 @@ func (p *nps) Start(s service.Service) error {
|
|||||||
}
|
}
|
||||||
func (p *nps) Stop(s service.Service) error {
|
func (p *nps) Stop(s service.Service) error {
|
||||||
close(p.exit)
|
close(p.exit)
|
||||||
|
if service.Interactive() {
|
||||||
|
os.Exit(0)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user