{"action":"created","issue":{"url":"https://api.github.com/repos/coreos/rkt/issues/1496","labels_url":"https://api.github.com/repos/coreos/rkt/issues/1496/labels{/name}","comments_url":"https://api.github.com/repos/coreos/rkt/issues/1496/comments","events_url":"https://api.github.com/repos/coreos/rkt/issues/1496/events","html_url":"https://github.com/coreos/rkt/issues/1496","id":108753849,"number":1496,"title":"[rfc] `rkt kill`","user":{"login":"vcaputo","id":1452963,"avatar_url":"https://avatars.githubusercontent.com/u/1452963?v=3","gravatar_id":"","url":"https://api.github.com/users/vcaputo","html_url":"https://github.com/vcaputo","followers_url":"https://api.github.com/users/vcaputo/followers","following_url":"https://api.github.com/users/vcaputo/following{/other_user}","gists_url":"https://api.github.com/users/vcaputo/gists{/gist_id}","starred_url":"https://api.github.com/users/vcaputo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcaputo/subscriptions","organizations_url":"https://api.github.com/users/vcaputo/orgs","repos_url":"https://api.github.com/users/vcaputo/repos","events_url":"https://api.github.com/users/vcaputo/events{/privacy}","received_events_url":"https://api.github.com/users/vcaputo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/coreos/rkt/labels/area/usability","name":"area/usability","color":"bfe5bf"},{"url":"https://api.github.com/repos/coreos/rkt/labels/component/stage0","name":"component/stage0","color":"0052cc"},{"url":"https://api.github.com/repos/coreos/rkt/labels/kind/question","name":"kind/question","color":"c7def8"},{"url":"https://api.github.com/repos/coreos/rkt/labels/priority/Pmaybe","name":"priority/Pmaybe","color":"fef2c0"}],"state":"open","locked":false,"assignee":{"login":"vcaputo","id":1452963,"avatar_url":"https://avatars.githubusercontent.com/u/1452963?v=3","gravatar_id":"","url":"https://api.github.com/users/vcaputo","html_url":"https://github.com/vcaputo","followers_url":"https://api.github.com/users/vcaputo/followers","following_url":"https://api.github.com/users/vcaputo/following{/other_user}","gists_url":"https://api.github.com/users/vcaputo/gists{/gist_id}","starred_url":"https://api.github.com/users/vcaputo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcaputo/subscriptions","organizations_url":"https://api.github.com/users/vcaputo/orgs","repos_url":"https://api.github.com/users/vcaputo/repos","events_url":"https://api.github.com/users/vcaputo/events{/privacy}","received_events_url":"https://api.github.com/users/vcaputo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/coreos/rkt/milestones/23","html_url":"https://github.com/coreos/rkt/milestones/v0.12.0","labels_url":"https://api.github.com/repos/coreos/rkt/milestones/23/labels","id":1357656,"number":23,"title":"v0.12.0","description":"","creator":{"login":"jonboulle","id":2601015,"avatar_url":"https://avatars.githubusercontent.com/u/2601015?v=3","gravatar_id":"","url":"https://api.github.com/users/jonboulle","html_url":"https://github.com/jonboulle","followers_url":"https://api.github.com/users/jonboulle/followers","following_url":"https://api.github.com/users/jonboulle/following{/other_user}","gists_url":"https://api.github.com/users/jonboulle/gists{/gist_id}","starred_url":"https://api.github.com/users/jonboulle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonboulle/subscriptions","organizations_url":"https://api.github.com/users/jonboulle/orgs","repos_url":"https://api.github.com/users/jonboulle/repos","events_url":"https://api.github.com/users/jonboulle/events{/privacy}","received_events_url":"https://api.github.com/users/jonboulle/received_events","type":"User","site_admin":false},"open_issues":48,"closed_issues":20,"state":"open","created_at":"2015-10-15T16:36:50Z","updated_at":"2015-11-25T16:07:13Z","due_on":"2015-11-25T23:00:00Z","closed_at":null},"comments":12,"created_at":"2015-09-28T21:50:21Z","updated_at":"2015-11-25T16:18:00Z","closed_at":null,"body":"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.\r\n\r\nThe `rkt kill` command could deliver the specified signal or the default SIGTERM to the top-level process representing the named pod.\r\n\r\nIt's a bit awkward with systemd in stage1 though, because systemd handles SIGTERM with the following:\r\n>        SIGTERM\r\n>           Upon receiving this signal the systemd system manager serializes\r\n>           its state, reexecutes itself and deserializes the saved state\r\n>           again. This is mostly equivalent to systemctl daemon-reexec.\r\n\r\nwhich isn't what we'd expect from a bare `rkt kill $pod` delivering SIGTERM as the default.\r\n\r\nThis has been brought up previously: https://github.com/coreos/rkt/pull/532#issuecomment-74742097\r\n\r\nDoes 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?"},"comment":{"url":"https://api.github.com/repos/coreos/rkt/issues/comments/159660240","html_url":"https://github.com/coreos/rkt/issues/1496#issuecomment-159660240","issue_url":"https://api.github.com/repos/coreos/rkt/issues/1496","id":159660240,"user":{"login":"alban","id":27575,"avatar_url":"https://avatars.githubusercontent.com/u/27575?v=3","gravatar_id":"","url":"https://api.github.com/users/alban","html_url":"https://github.com/alban","followers_url":"https://api.github.com/users/alban/followers","following_url":"https://api.github.com/users/alban/following{/other_user}","gists_url":"https://api.github.com/users/alban/gists{/gist_id}","starred_url":"https://api.github.com/users/alban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alban/subscriptions","organizations_url":"https://api.github.com/users/alban/orgs","repos_url":"https://api.github.com/users/alban/repos","events_url":"https://api.github.com/users/alban/events{/privacy}","received_events_url":"https://api.github.com/users/alban/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T16:17:59Z","updated_at":"2015-11-25T16:17:59Z","body":"#1699 has been merged, so it returns the pid of stage1 now."}}