mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-18 05:00:03 +02:00
src/main.go: in eventLoop() combine SIGINT and SIGTERM handling, they have the same functionality.
This commit is contained in:
parent
bd412bb0eb
commit
c2e0bef26e
1 changed files with 1 additions and 4 deletions
|
|
@ -89,10 +89,7 @@ func signalEventLoop() {
|
|||
l := logger.New("signal", sig)
|
||||
|
||||
switch sig {
|
||||
case syscall.SIGINT :
|
||||
l.Info("Interrupted")
|
||||
run = false
|
||||
case syscall.SIGTERM :
|
||||
case syscall.SIGINT, syscall.SIGTERM :
|
||||
l.Info("Program was asked to terminate.")
|
||||
run = false
|
||||
// SIGHUP is sent when logfile is rotated.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue