{"action":"created","issue":{"url":"https://api.github.com/repos/elastic/beats/issues/3053","repository_url":"https://api.github.com/repos/elastic/beats","labels_url":"https://api.github.com/repos/elastic/beats/issues/3053/labels{/name}","comments_url":"https://api.github.com/repos/elastic/beats/issues/3053/comments","events_url":"https://api.github.com/repos/elastic/beats/issues/3053/events","html_url":"https://github.com/elastic/beats/issues/3053","id":191171067,"number":3053,"title":"Debian init script cannot be remotely started with a tty","user":{"login":"blbradley","id":1435085,"avatar_url":"https://avatars.githubusercontent.com/u/1435085?v=3","gravatar_id":"","url":"https://api.github.com/users/blbradley","html_url":"https://github.com/blbradley","followers_url":"https://api.github.com/users/blbradley/followers","following_url":"https://api.github.com/users/blbradley/following{/other_user}","gists_url":"https://api.github.com/users/blbradley/gists{/gist_id}","starred_url":"https://api.github.com/users/blbradley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blbradley/subscriptions","organizations_url":"https://api.github.com/users/blbradley/orgs","repos_url":"https://api.github.com/users/blbradley/repos","events_url":"https://api.github.com/users/blbradley/events{/privacy}","received_events_url":"https://api.github.com/users/blbradley/received_events","type":"User","site_admin":false},"labels":[{"id":78874872,"url":"https://api.github.com/repos/elastic/beats/labels/bug","name":"bug","color":"fc2929","default":true},{"id":216798691,"url":"https://api.github.com/repos/elastic/beats/labels/packaging","name":"packaging","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-11-23T01:48:27Z","updated_at":"2016-12-01T22:10:55Z","closed_at":null,"body":"- Version: Any beats component and version using Debian init scripts\r\n- Operating System: Debian-based OSes not using systemd\r\n- Steps to Reproduce: See [this](https://discuss.elastic.co/t/weird-filebeat-init-script-issue/35486) and [this](https://discuss.elastic.co/t/repackaging-beats-deb-files-service-wont-start/37898) Elastic forum discussion.\r\n\r\nSome discussion says that Debian doesn't need the `go-daemon` process as a supervisor. I agree. It will be better to fix this upstream than manage changes to the init script per package.\r\n\r\nThe second link describes how to fix the init script. Does that seem acceptable?"},"comment":{"url":"https://api.github.com/repos/elastic/beats/issues/comments/264311391","html_url":"https://github.com/elastic/beats/issues/3053#issuecomment-264311391","issue_url":"https://api.github.com/repos/elastic/beats/issues/3053","id":264311391,"user":{"login":"tsg","id":101817,"avatar_url":"https://avatars.githubusercontent.com/u/101817?v=3","gravatar_id":"","url":"https://api.github.com/users/tsg","html_url":"https://github.com/tsg","followers_url":"https://api.github.com/users/tsg/followers","following_url":"https://api.github.com/users/tsg/following{/other_user}","gists_url":"https://api.github.com/users/tsg/gists{/gist_id}","starred_url":"https://api.github.com/users/tsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsg/subscriptions","organizations_url":"https://api.github.com/users/tsg/orgs","repos_url":"https://api.github.com/users/tsg/repos","events_url":"https://api.github.com/users/tsg/events{/privacy}","received_events_url":"https://api.github.com/users/tsg/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T22:10:55Z","updated_at":"2016-12-01T22:10:55Z","body":"I can reproduce it now as well, many thanks for digging into this.\r\n\r\nSo this works:\r\n\r\n```\r\nssh tester-ubuntu1204-32 \"sudo /etc/init.d/filebeat start\"\r\n```\r\n\r\nBut this doesn't:\r\n\r\n```\r\nssh -t tester-ubuntu1204-32 \"sudo /etc/init.d/filebeat start\"\r\n```\r\n\r\nSame can be reproduced with go-daemon only. This doesn't work as expected:\r\n\r\n```\r\nssh -t tester-ubuntu1204-32 \"/usr/share/filebeat/bin/filebeat-god /bin/sleep 100\"\r\n```\r\n\r\nIt's probably because go-daemon doesn't call `setsid`, see: http://stackoverflow.com/a/8777697/15685"}}
{"actor":{"display_login":"tsg"}}