actually wait on the signal
This commit is contained in:
parent
4f1a1c6783
commit
0072b6e8f2
@ -72,6 +72,7 @@ func (s *service) Run() error {
|
||||
|
||||
ch := make(chan os.Signal, 1)
|
||||
signal.Notify(ch, syscall.SIGTERM, syscall.SIGINT, syscall.SIGKILL)
|
||||
<-ch
|
||||
|
||||
if err := s.Stop(); err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user