Skip to content

Commit

Permalink
Return 0 on SIGTERM
Browse files Browse the repository at this point in the history
  • Loading branch information
wcmjunior committed Sep 12, 2024
1 parent a0a48c0 commit 54b6ec9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func initSignals(s *Supervisor) {
sig := <-sigs
log.WithFields(log.Fields{"signal": sig}).Info("receive a signal to stop all process & exit")
s.procMgr.StopAllProcesses()
os.Exit(-1)
os.Exit(0)
}()

}
Expand Down

0 comments on commit 54b6ec9

Please sign in to comment.