mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Move to Process.on_interupt (#666)
This commit is contained in:
parent
13fd4f8b2f
commit
0de0e990e9
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ module Kemal
|
||||||
end
|
end
|
||||||
|
|
||||||
private def self.setup_trap_signal
|
private def self.setup_trap_signal
|
||||||
Signal::INT.trap do
|
Process.on_interrupt do
|
||||||
log "#{Kemal.config.app_name} is going to take a rest!" if Kemal.config.shutdown_message
|
log "#{Kemal.config.app_name} is going to take a rest!" if Kemal.config.shutdown_message
|
||||||
Kemal.stop
|
Kemal.stop
|
||||||
exit
|
exit
|
||||||
|
|
Loading…
Reference in a new issue