mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
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…
Reference in New Issue
Block a user