Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 052d458f authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

Merge branch 'quitkaconsoleterm' into 'master'

kaconsole: Quit with SIGTERM

See merge request !17
parents a4f3a4f2 b5257510
No related branches found
No related tags found
1 merge request!17kaconsole: Quit with SIGTERM
Pipeline #209683 waiting for manual action
......@@ -7,6 +7,12 @@ Signal.trap("INT") do
exit!(1)
end
Signal.trap("TERM") do
$stdout.puts "\nSIGTERM trapped"
Kadeploy::KaconsoleClient.kill() rescue nil
exit!(1)
end
require 'kadeploy3/client'
require 'io/console' if RUBY_VERSION >= '1.9'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment