Skip to content

Commit

Permalink
actually wait on the signal
Browse files Browse the repository at this point in the history
  • Loading branch information
Asim committed Dec 21, 2015
1 parent 4f1a1c6 commit 0072b6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0072b6e

Please sign in to comment.