1
0
Fork 0
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:
Henrik Hautakoski 2022-08-21 15:01:04 +02:00
parent bd412bb0eb
commit c2e0bef26e
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

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