{"action":"created","issue":{"url":"https://api.github.com/repos/rancherio/rancher/issues/338","labels_url":"https://api.github.com/repos/rancherio/rancher/issues/338/labels{/name}","comments_url":"https://api.github.com/repos/rancherio/rancher/issues/338/comments","events_url":"https://api.github.com/repos/rancherio/rancher/issues/338/events","html_url":"https://github.com/rancherio/rancher/issues/338","id":64673830,"number":338,"title":"rancher/agent on CoreOS","user":{"login":"hany","id":26979,"avatar_url":"https://avatars.githubusercontent.com/u/26979?v=3","gravatar_id":"","url":"https://api.github.com/users/hany","html_url":"https://github.com/hany","followers_url":"https://api.github.com/users/hany/followers","following_url":"https://api.github.com/users/hany/following{/other_user}","gists_url":"https://api.github.com/users/hany/gists{/gist_id}","starred_url":"https://api.github.com/users/hany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hany/subscriptions","organizations_url":"https://api.github.com/users/hany/orgs","repos_url":"https://api.github.com/users/hany/repos","events_url":"https://api.github.com/users/hany/events{/privacy}","received_events_url":"https://api.github.com/users/hany/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-27T01:59:08Z","updated_at":"2015-03-27T02:29:54Z","closed_at":null,"body":"I realize this may not be the most popular OS to run Rancher on, but is there any docs or guidance on writing systemd unit files for running `rancher/agent`? Running the following container as instructed:\r\n\r\n```\r\n/usr/bin/docker run --privileged -v /var/run/docker.sock:/var/run/docker.sock rancher/agent:v0.5.2 <URL>\r\n```\r\n\r\nSeems to launch their own containers and then exit, which conflicts with systemd.\r\n\r\nAny help would be appreciated."},"comment":{"url":"https://api.github.com/repos/rancherio/rancher/issues/comments/86790386","html_url":"https://github.com/rancherio/rancher/issues/338#issuecomment-86790386","issue_url":"https://api.github.com/repos/rancherio/rancher/issues/338","id":86790386,"user":{"login":"ibuildthecloud","id":1754002,"avatar_url":"https://avatars.githubusercontent.com/u/1754002?v=3","gravatar_id":"","url":"https://api.github.com/users/ibuildthecloud","html_url":"https://github.com/ibuildthecloud","followers_url":"https://api.github.com/users/ibuildthecloud/followers","following_url":"https://api.github.com/users/ibuildthecloud/following{/other_user}","gists_url":"https://api.github.com/users/ibuildthecloud/gists{/gist_id}","starred_url":"https://api.github.com/users/ibuildthecloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibuildthecloud/subscriptions","organizations_url":"https://api.github.com/users/ibuildthecloud/orgs","repos_url":"https://api.github.com/users/ibuildthecloud/repos","events_url":"https://api.github.com/users/ibuildthecloud/events{/privacy}","received_events_url":"https://api.github.com/users/ibuildthecloud/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T02:29:54Z","updated_at":"2015-03-27T02:29:54Z","body":"The whole agent registration process is a bit magical at the moment (and really complex).  We've needed to change the process to simplify it and make it more easy to troubleshoot.  I will take this into consideration when we change it.  It should be more compatible with systemd.\r\n\r\nYour right in that you'll have some problems getting systemd to monitor Docker containers, but the agent spawns the real agent container that is launched with `--restart=always`.  So Docker will ensure that the container stays running."}}