{"action":"created","issue":{"url":"https://api.github.com/repos/systemd/systemd/issues/2069","labels_url":"https://api.github.com/repos/systemd/systemd/issues/2069/labels{/name}","comments_url":"https://api.github.com/repos/systemd/systemd/issues/2069/comments","events_url":"https://api.github.com/repos/systemd/systemd/issues/2069/events","html_url":"https://github.com/systemd/systemd/issues/2069","id":119536608,"number":2069,"title":"attach stdin/stdout to a running service","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-30T17:10:03Z","updated_at":"2015-12-01T19:16:07Z","closed_at":null,"body":"Is there a way to attach stdin/stdout to a currently running service?\r\n\r\n```\r\n$ systemctl start myapp.service\r\n$ systemctl attach myapp.service\r\n```\r\n\r\nIt would be the equivalent of `docker attach`. Maybe a new option in [StandardOutput](http://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardInput=)?\r\n\r\n```\r\nStandardOutput=tty-allocate\r\nTTYPath=\"allocate a new tty so that 'systemctl attach' can later be plugged on it\"?\r\n```\r\n\r\nIt would help for https://github.com/coreos/rkt/issues/1799.\r\n"},"comment":{"url":"https://api.github.com/repos/systemd/systemd/issues/comments/161067101","html_url":"https://github.com/systemd/systemd/issues/2069#issuecomment-161067101","issue_url":"https://api.github.com/repos/systemd/systemd/issues/2069","id":161067101,"user":{"login":"keszybz","id":349618,"avatar_url":"https://avatars.githubusercontent.com/u/349618?v=3","gravatar_id":"","url":"https://api.github.com/users/keszybz","html_url":"https://github.com/keszybz","followers_url":"https://api.github.com/users/keszybz/followers","following_url":"https://api.github.com/users/keszybz/following{/other_user}","gists_url":"https://api.github.com/users/keszybz/gists{/gist_id}","starred_url":"https://api.github.com/users/keszybz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keszybz/subscriptions","organizations_url":"https://api.github.com/users/keszybz/orgs","repos_url":"https://api.github.com/users/keszybz/repos","events_url":"https://api.github.com/users/keszybz/events{/privacy}","received_events_url":"https://api.github.com/users/keszybz/received_events","type":"User","site_admin":false},"created_at":"2015-12-01T19:16:07Z","updated_at":"2015-12-01T19:16:07Z","body":"I think this should be external.\r\n\r\nSee\r\n- http://www.isi.edu/~yuri/dupx/ or\r\n- https://github.com/jerome-pouiller/reredirect/ or\r\n- http://pasky.or.cz/dev/retty/ or\r\n- https://github.com/nelhage/reptyr. \r\n\r\nThis last one seems most alive. There's even a Fedora package https://apps.fedoraproject.org/packages/reptyr."}}