{"action":"opened","number":672,"pull_request":{"url":"https://api.github.com/repos/Supervisor/supervisor/pulls/672","id":47160250,"html_url":"https://github.com/Supervisor/supervisor/pull/672","diff_url":"https://github.com/Supervisor/supervisor/pull/672.diff","patch_url":"https://github.com/Supervisor/supervisor/pull/672.patch","issue_url":"https://api.github.com/repos/Supervisor/supervisor/issues/672","number":672,"state":"open","locked":false,"title":"Add a `settings` command to supervisorctl","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"body":"(Relies on https://github.com/Supervisor/supervisor/pull/670)\r\n\r\nExample usage:\r\n\r\n     $ supervisorctl settings sleep_and_die\r\n     {\r\n         \"autostart\": false,\r\n         \"command\": \"/bin/bash -c 'echo \\\"Sleeping a bit...\\\"; sleep 5; echo \\\"Exiting with exit code 1\\\"; exit 1'\",\r\n         \"exitcodes\": [\r\n             0,\r\n             2\r\n         ],\r\n         \"group\": \"sleep_and_die\",\r\n         \"group_prio\": 999,\r\n         \"inuse\": true,\r\n         \"killasgroup\": false,\r\n         \"name\": \"sleep_and_die\",\r\n         \"process_prio\": 999,\r\n         \"redirect_stderr\": false,\r\n         \"startretries\": 0,\r\n         \"startsecs\": 10,\r\n         \"stderr_capture_maxbytes\": 0,\r\n         \"stderr_events_enabled\": false,\r\n         \"stderr_logfile\": \"/Users/marca/dev/git-repos/supervisor/var/log/supervisor/sleep_and_die-stderr---supervisor-ekeD2B.log\",\r\n         \"stderr_logfile_backups\": 10,\r\n         \"stderr_logfile_maxbytes\": 52428800,\r\n         \"stderr_syslog\": false,\r\n         \"stdout_capture_maxbytes\": 0,\r\n         \"stdout_events_enabled\": false,\r\n         \"stdout_logfile\": \"/Users/marca/dev/git-repos/supervisor/var/log/supervisor/sleep_and_die-stdout---supervisor-Xh5DKb.log\",\r\n         \"stdout_logfile_backups\": 10,\r\n         \"stdout_logfile_maxbytes\": 52428800,\r\n         \"stdout_syslog\": false,\r\n         \"stopsignal\": 15,\r\n         \"stopwaitsecs\": 10\r\n     }","created_at":"2015-10-08T14:33:17Z","updated_at":"2015-10-08T14:33:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Supervisor/supervisor/pulls/672/commits","review_comments_url":"https://api.github.com/repos/Supervisor/supervisor/pulls/672/comments","review_comment_url":"https://api.github.com/repos/Supervisor/supervisor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Supervisor/supervisor/issues/672/comments","statuses_url":"https://api.github.com/repos/Supervisor/supervisor/statuses/70d7feb81373a90c046bf84c630082c0fb8a2cf1","head":{"label":"msabramo:add_settings_command","ref":"add_settings_command","sha":"70d7feb81373a90c046bf84c630082c0fb8a2cf1","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"repo":{"id":17075715,"name":"supervisor","full_name":"msabramo/supervisor","owner":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/msabramo/supervisor","description":"Supervisor process control system for UNIX","fork":true,"url":"https://api.github.com/repos/msabramo/supervisor","forks_url":"https://api.github.com/repos/msabramo/supervisor/forks","keys_url":"https://api.github.com/repos/msabramo/supervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/msabramo/supervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/msabramo/supervisor/teams","hooks_url":"https://api.github.com/repos/msabramo/supervisor/hooks","issue_events_url":"https://api.github.com/repos/msabramo/supervisor/issues/events{/number}","events_url":"https://api.github.com/repos/msabramo/supervisor/events","assignees_url":"https://api.github.com/repos/msabramo/supervisor/assignees{/user}","branches_url":"https://api.github.com/repos/msabramo/supervisor/branches{/branch}","tags_url":"https://api.github.com/repos/msabramo/supervisor/tags","blobs_url":"https://api.github.com/repos/msabramo/supervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/msabramo/supervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/msabramo/supervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/msabramo/supervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/msabramo/supervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/msabramo/supervisor/languages","stargazers_url":"https://api.github.com/repos/msabramo/supervisor/stargazers","contributors_url":"https://api.github.com/repos/msabramo/supervisor/contributors","subscribers_url":"https://api.github.com/repos/msabramo/supervisor/subscribers","subscription_url":"https://api.github.com/repos/msabramo/supervisor/subscription","commits_url":"https://api.github.com/repos/msabramo/supervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/msabramo/supervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/msabramo/supervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/msabramo/supervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/msabramo/supervisor/contents/{+path}","compare_url":"https://api.github.com/repos/msabramo/supervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/msabramo/supervisor/merges","archive_url":"https://api.github.com/repos/msabramo/supervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/msabramo/supervisor/downloads","issues_url":"https://api.github.com/repos/msabramo/supervisor/issues{/number}","pulls_url":"https://api.github.com/repos/msabramo/supervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/msabramo/supervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/msabramo/supervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/msabramo/supervisor/labels{/name}","releases_url":"https://api.github.com/repos/msabramo/supervisor/releases{/id}","created_at":"2014-02-22T01:40:15Z","updated_at":"2014-05-10T17:12:39Z","pushed_at":"2015-10-08T14:32:42Z","git_url":"git://github.com/msabramo/supervisor.git","ssh_url":"git@github.com:msabramo/supervisor.git","clone_url":"https://github.com/msabramo/supervisor.git","svn_url":"https://github.com/msabramo/supervisor","homepage":"http://supervisord.org","size":5800,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Supervisor:master","ref":"master","sha":"363f5c952fc2c5f1881349438ccf937c9ef63b25","user":{"login":"Supervisor","id":513914,"avatar_url":"https://avatars.githubusercontent.com/u/513914?v=3","gravatar_id":"","url":"https://api.github.com/users/Supervisor","html_url":"https://github.com/Supervisor","followers_url":"https://api.github.com/users/Supervisor/followers","following_url":"https://api.github.com/users/Supervisor/following{/other_user}","gists_url":"https://api.github.com/users/Supervisor/gists{/gist_id}","starred_url":"https://api.github.com/users/Supervisor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Supervisor/subscriptions","organizations_url":"https://api.github.com/users/Supervisor/orgs","repos_url":"https://api.github.com/users/Supervisor/repos","events_url":"https://api.github.com/users/Supervisor/events{/privacy}","received_events_url":"https://api.github.com/users/Supervisor/received_events","type":"Organization","site_admin":false},"repo":{"id":1148352,"name":"supervisor","full_name":"Supervisor/supervisor","owner":{"login":"Supervisor","id":513914,"avatar_url":"https://avatars.githubusercontent.com/u/513914?v=3","gravatar_id":"","url":"https://api.github.com/users/Supervisor","html_url":"https://github.com/Supervisor","followers_url":"https://api.github.com/users/Supervisor/followers","following_url":"https://api.github.com/users/Supervisor/following{/other_user}","gists_url":"https://api.github.com/users/Supervisor/gists{/gist_id}","starred_url":"https://api.github.com/users/Supervisor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Supervisor/subscriptions","organizations_url":"https://api.github.com/users/Supervisor/orgs","repos_url":"https://api.github.com/users/Supervisor/repos","events_url":"https://api.github.com/users/Supervisor/events{/privacy}","received_events_url":"https://api.github.com/users/Supervisor/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Supervisor/supervisor","description":"Supervisor process control system for UNIX","fork":false,"url":"https://api.github.com/repos/Supervisor/supervisor","forks_url":"https://api.github.com/repos/Supervisor/supervisor/forks","keys_url":"https://api.github.com/repos/Supervisor/supervisor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Supervisor/supervisor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Supervisor/supervisor/teams","hooks_url":"https://api.github.com/repos/Supervisor/supervisor/hooks","issue_events_url":"https://api.github.com/repos/Supervisor/supervisor/issues/events{/number}","events_url":"https://api.github.com/repos/Supervisor/supervisor/events","assignees_url":"https://api.github.com/repos/Supervisor/supervisor/assignees{/user}","branches_url":"https://api.github.com/repos/Supervisor/supervisor/branches{/branch}","tags_url":"https://api.github.com/repos/Supervisor/supervisor/tags","blobs_url":"https://api.github.com/repos/Supervisor/supervisor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Supervisor/supervisor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Supervisor/supervisor/git/refs{/sha}","trees_url":"https://api.github.com/repos/Supervisor/supervisor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Supervisor/supervisor/statuses/{sha}","languages_url":"https://api.github.com/repos/Supervisor/supervisor/languages","stargazers_url":"https://api.github.com/repos/Supervisor/supervisor/stargazers","contributors_url":"https://api.github.com/repos/Supervisor/supervisor/contributors","subscribers_url":"https://api.github.com/repos/Supervisor/supervisor/subscribers","subscription_url":"https://api.github.com/repos/Supervisor/supervisor/subscription","commits_url":"https://api.github.com/repos/Supervisor/supervisor/commits{/sha}","git_commits_url":"https://api.github.com/repos/Supervisor/supervisor/git/commits{/sha}","comments_url":"https://api.github.com/repos/Supervisor/supervisor/comments{/number}","issue_comment_url":"https://api.github.com/repos/Supervisor/supervisor/issues/comments{/number}","contents_url":"https://api.github.com/repos/Supervisor/supervisor/contents/{+path}","compare_url":"https://api.github.com/repos/Supervisor/supervisor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Supervisor/supervisor/merges","archive_url":"https://api.github.com/repos/Supervisor/supervisor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Supervisor/supervisor/downloads","issues_url":"https://api.github.com/repos/Supervisor/supervisor/issues{/number}","pulls_url":"https://api.github.com/repos/Supervisor/supervisor/pulls{/number}","milestones_url":"https://api.github.com/repos/Supervisor/supervisor/milestones{/number}","notifications_url":"https://api.github.com/repos/Supervisor/supervisor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Supervisor/supervisor/labels{/name}","releases_url":"https://api.github.com/repos/Supervisor/supervisor/releases{/id}","created_at":"2010-12-08T00:48:48Z","updated_at":"2015-10-08T09:21:00Z","pushed_at":"2015-10-08T14:11:42Z","git_url":"git://github.com/Supervisor/supervisor.git","ssh_url":"git@github.com:Supervisor/supervisor.git","clone_url":"https://github.com/Supervisor/supervisor.git","svn_url":"https://github.com/Supervisor/supervisor","homepage":"http://supervisord.org","size":9371,"stargazers_count":1981,"watchers_count":1981,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":419,"mirror_url":null,"open_issues_count":120,"forks":419,"open_issues":120,"watchers":1981,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Supervisor/supervisor/pulls/672"},"html":{"href":"https://github.com/Supervisor/supervisor/pull/672"},"issue":{"href":"https://api.github.com/repos/Supervisor/supervisor/issues/672"},"comments":{"href":"https://api.github.com/repos/Supervisor/supervisor/issues/672/comments"},"review_comments":{"href":"https://api.github.com/repos/Supervisor/supervisor/pulls/672/comments"},"review_comment":{"href":"https://api.github.com/repos/Supervisor/supervisor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Supervisor/supervisor/pulls/672/commits"},"statuses":{"href":"https://api.github.com/repos/Supervisor/supervisor/statuses/70d7feb81373a90c046bf84c630082c0fb8a2cf1"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":16,"deletions":0,"changed_files":1}}