mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-07-02 11:43:42 +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)
|
l := logger.New("signal", sig)
|
||||||
|
|
||||||
switch sig {
|
switch sig {
|
||||||
case syscall.SIGINT :
|
case syscall.SIGINT, syscall.SIGTERM :
|
||||||
l.Info("Interrupted")
|
|
||||||
run = false
|
|
||||||
case syscall.SIGTERM :
|
|
||||||
l.Info("Program was asked to terminate.")
|
l.Info("Program was asked to terminate.")
|
||||||
run = false
|
run = false
|
||||||
// SIGHUP is sent when logfile is rotated.
|
// SIGHUP is sent when logfile is rotated.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue