{"action":"created","issue":{"url":"https://api.github.com/repos/ddollar/foreman/issues/508","repository_url":"https://api.github.com/repos/ddollar/foreman","labels_url":"https://api.github.com/repos/ddollar/foreman/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/ddollar/foreman/issues/508/comments","events_url":"https://api.github.com/repos/ddollar/foreman/issues/508/events","html_url":"https://github.com/ddollar/foreman/issues/508","id":51615062,"number":508,"title":"nohup foreman leaves processes hanging after -SIGINT","user":{"login":"haggen","id":270076,"avatar_url":"https://avatars.githubusercontent.com/u/270076?v=3","gravatar_id":"","url":"https://api.github.com/users/haggen","html_url":"https://github.com/haggen","followers_url":"https://api.github.com/users/haggen/followers","following_url":"https://api.github.com/users/haggen/following{/other_user}","gists_url":"https://api.github.com/users/haggen/gists{/gist_id}","starred_url":"https://api.github.com/users/haggen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haggen/subscriptions","organizations_url":"https://api.github.com/users/haggen/orgs","repos_url":"https://api.github.com/users/haggen/repos","events_url":"https://api.github.com/users/haggen/events{/privacy}","received_events_url":"https://api.github.com/users/haggen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ddollar/foreman/labels/needs%20info","name":"needs info","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2014-12-10T21:43:30Z","updated_at":"2016-04-23T21:33:34Z","closed_at":null,"body":"So, I setup a Procfile and used this script to run foreman in background:\r\n\r\n```\r\nnohup foreman > app.log 2>&1 &; \r\necho $! > app.pid\r\n```\r\n\r\nThen, when I want to halt the processes I just do `kill -SIGINT $(cat app.pid)`. This kills foreman and the direct child `sh` processes that -- I presume -- `bundle exec` started, but Puma and Sidekiq are left running.\r\n\r\nAny thoughts ?"},"comment":{"url":"https://api.github.com/repos/ddollar/foreman/issues/comments/213835338","html_url":"https://github.com/ddollar/foreman/issues/508#issuecomment-213835338","issue_url":"https://api.github.com/repos/ddollar/foreman/issues/508","id":213835338,"user":{"login":"ddollar","id":3308,"avatar_url":"https://avatars.githubusercontent.com/u/3308?v=3","gravatar_id":"","url":"https://api.github.com/users/ddollar","html_url":"https://github.com/ddollar","followers_url":"https://api.github.com/users/ddollar/followers","following_url":"https://api.github.com/users/ddollar/following{/other_user}","gists_url":"https://api.github.com/users/ddollar/gists{/gist_id}","starred_url":"https://api.github.com/users/ddollar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddollar/subscriptions","organizations_url":"https://api.github.com/users/ddollar/orgs","repos_url":"https://api.github.com/users/ddollar/repos","events_url":"https://api.github.com/users/ddollar/events{/privacy}","received_events_url":"https://api.github.com/users/ddollar/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T21:33:34Z","updated_at":"2016-04-23T21:33:34Z","body":"If anyone that is being affected by this would like to submit a PR I would be grateful. Thank you! My time is currently quite limited so I will likely not be addressing non-critical issues for quite some time."}}