{"action":"reopened","issue":{"url":"https://api.github.com/repos/ochinchina/supervisord/issues/48","repository_url":"https://api.github.com/repos/ochinchina/supervisord","labels_url":"https://api.github.com/repos/ochinchina/supervisord/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/ochinchina/supervisord/issues/48/comments","events_url":"https://api.github.com/repos/ochinchina/supervisord/issues/48/events","html_url":"https://github.com/ochinchina/supervisord/issues/48","id":265766963,"node_id":"MDU6SXNzdWUyNjU3NjY5NjM=","number":48,"title":"supervisord ctl stop doesn't work for inner commands","user":{"login":"Siecje","id":4069476,"node_id":"MDQ6VXNlcjQwNjk0NzY=","avatar_url":"https://avatars3.githubusercontent.com/u/4069476?v=4","gravatar_id":"","url":"https://api.github.com/users/Siecje","html_url":"https://github.com/Siecje","followers_url":"https://api.github.com/users/Siecje/followers","following_url":"https://api.github.com/users/Siecje/following{/other_user}","gists_url":"https://api.github.com/users/Siecje/gists{/gist_id}","starred_url":"https://api.github.com/users/Siecje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siecje/subscriptions","organizations_url":"https://api.github.com/users/Siecje/orgs","repos_url":"https://api.github.com/users/Siecje/repos","events_url":"https://api.github.com/users/Siecje/events{/privacy}","received_events_url":"https://api.github.com/users/Siecje/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-10-16T13:18:30Z","updated_at":"2018-08-07T18:28:21Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"In my supervisord config I'm running a script which sets some environment  variables and then runs a script. If I do `supervisord ctl stop $program` it removes the first script but re-parents the inside script to be a child of `init` and continues to run. After `supervisord ctl stop`, it still shows as running in `supervisord status` and is actually still running.\r\n\r\nHere are the test files I am using.\r\n\r\nsupervisord config\r\n```\r\n[inet_http_server]\r\nport=127.0.0.1:9001\r\n\r\n[program:one]\r\ncommand=/home/siecje/Desktop/one.sh\r\n```\r\n\r\none.sh\r\n```\r\n#!/bin/sh\r\n\r\n/home/siecje/.virtualenvs/edms/bin/python /home/siecje/Desktop/one.py\r\n```\r\n\r\none.py\r\n```\r\nfrom flask import Flask\r\napp = Flask(__name__)\r\n\r\n@app.route('/')\r\ndef hello_world():\r\n    return 'Hello, World!'\r\n\r\nif __name__ == '__main__':\r\n    import waitress\r\n    waitress.serve(app, host = \"localhost\", port = 5000)\r\n```\r\n\r\none.py will run forever serving a web application. In order to run it you will need to `pip install Flask waitress`. "}}
{"actor":{"display_login":"Siecje"}}