mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
use Process.on_terminate to support SIGTERM termination.
This commit is contained in:
parent
1d46fd17d7
commit
a2fc937f1b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue