-
Notifications
You must be signed in to change notification settings - Fork 883
[rfc] rkt kill
#1496
Comments
IMHO, from a semantic point of view we should only have a |
I think something specific would make it more user-friendly. For systemd-stage1,
I don't know if it worth an entrypoint with a binary just to send a signal. |
well, what's appropriate for stopping lkvm? that's where the entrypoint comes in. |
naive driveby, can't we kill systemd-nspawn/lkvm process and it'll Do The On Mon, Sep 28, 2015 at 3:35 PM, Vito Caputo notifications@github.com
|
By default, if I don't see any kind of similar signal handling in lkvm. There's lkvm stop though. |
Maybe we just send SIGTERM to the outer rkt process of the pod then, like any process manager would do. The only reasons I can see for introducing a
Maybe it makes sense to have a stop entrypoint, invoke it when set, and afterwards send SIGTERM all the same to the outer rkt process of the pod. I don't like the |
So I think I have a related issue that would benefit from generic I'm currently trying to port a haproxy docker container that uses |
Maybe we should return the pid of the stage1 now? On an oob discussion @vcaputo told me currently pid returned by |
Ah that would really help. |
#1699 has been merged, so it returns the pid of stage1 now. |
My hunch here is to do a |
Started working on this https://github.com/kinvolk/rkt/commits/iaguis/rkt-stop It sends SIGTERM to the pid of stage1 for the nspawn and fly flavors and it calls It seems to work but I want to do some refactorings to get rid of flavor code messiness (e.g. all the |
for cadvisor testing this would be nice, i.e. I'm systemd-run'ing rkt to run-prepared the containers in the background and would just like to stop the uuid |
I'd also need to signal a process running inside a Rkt container. In my case that would be |
There's no way to "stop" a rkt container today, it seems a general
rkt kill $SIGNUM
analogous to the standard unix kill(1) command would go a long way towards providing it.The
rkt kill
command could deliver the specified signal or the default SIGTERM to the top-level process representing the named pod.It's a bit awkward with systemd in stage1 though, because systemd handles SIGTERM with the following:
which isn't what we'd expect from a bare
rkt kill $pod
delivering SIGTERM as the default.This has been brought up previously: #532 (comment)
Does it make sense to have a general kill which delivers a signal to the pod's top-level process? Or should we make a less general
rkt stop
which employs some stage1-specific stop entrypoint to Do The Right Thing?The text was updated successfully, but these errors were encountered: