From a2fc937f1b5474c48534b798e0201d46dc267bfd Mon Sep 17 00:00:00 2001 From: Abdullah Alhusaini Date: Thu, 25 Jul 2024 02:38:47 +0300 Subject: [PATCH] use Process.on_terminate to support SIGTERM termination. --- src/kemal.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kemal.cr b/src/kemal.cr index 843f89e4..98bf3245 100644 --- a/src/kemal.cr +++ b/src/kemal.cr @@ -89,7 +89,7 @@ module Kemal end private def self.setup_trap_signal - Process.on_interrupt do + Process.on_terminate do log "#{Kemal.config.app_name} is going to take a rest!" if Kemal.config.shutdown_message Kemal.stop exit