Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kadeploy
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
grid5000
kadeploy
Commits
052d458f
Commit
052d458f
authored
4 years ago
by
Alexandre MERLIN
Browse files
Options
Downloads
Plain Diff
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
!17
kaconsole: Quit with SIGTERM
Pipeline
#209683
waiting for manual action
Stage: lint
Stage: test
Stage: deb
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/kaconsole3
+6
-0
6 additions, 0 deletions
bin/kaconsole3
with
6 additions
and
0 deletions
bin/kaconsole3
+
6
−
0
View file @
052d458f
...
...
@@ -7,6 +7,12 @@ Signal.trap("INT") do
exit!
(
1
)
end
Signal
.
trap
(
"TERM"
)
do
$stdout
.
puts
"
\n
SIGTERM trapped"
Kadeploy
::
KaconsoleClient
.
kill
()
rescue
nil
exit!
(
1
)
end
require
'kadeploy3/client'
require
'io/console'
if
RUBY_VERSION
>=
'1.9'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment