1
0
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:
Asim 2015-12-21 01:41:36 +00:00
parent 4f1a1c6783
commit 0072b6e8f2

View File

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