{"action":"created","comment":{"url":"https://api.github.com/repos/Yelp/pgctl/pulls/comments/37049369","id":37049369,"diff_hunk":"@@ -147,7 +149,7 @@ def svstat(*services):\n     ]\n \n \n-def exec_(argv):  # pragma: no cover\n+def exec_(argv, env=os.environ):  # pragma: no cover, pylint:disable=dangerous-default-value","path":"pgctl/cli.py","position":21,"original_position":21,"commit_id":"6351a438594cf4873ca936e94412d37d499c2423","original_commit_id":"6351a438594cf4873ca936e94412d37d499c2423","user":{"login":"chriskuehl","id":665269,"avatar_url":"https://avatars.githubusercontent.com/u/665269?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskuehl","html_url":"https://github.com/chriskuehl","followers_url":"https://api.github.com/users/chriskuehl/followers","following_url":"https://api.github.com/users/chriskuehl/following{/other_user}","gists_url":"https://api.github.com/users/chriskuehl/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuehl/subscriptions","organizations_url":"https://api.github.com/users/chriskuehl/orgs","repos_url":"https://api.github.com/users/chriskuehl/repos","events_url":"https://api.github.com/users/chriskuehl/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuehl/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-08-14T04:46:29Z","updated_at":"2015-08-14T04:46:29Z","html_url":"https://github.com/Yelp/pgctl/pull/22#discussion_r37049369","pull_request_url":"https://api.github.com/repos/Yelp/pgctl/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/Yelp/pgctl/pulls/comments/37049369"},"html":{"href":"https://github.com/Yelp/pgctl/pull/22#discussion_r37049369"},"pull_request":{"href":"https://api.github.com/repos/Yelp/pgctl/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/Yelp/pgctl/pulls/22","id":42411982,"html_url":"https://github.com/Yelp/pgctl/pull/22","diff_url":"https://github.com/Yelp/pgctl/pull/22.diff","patch_url":"https://github.com/Yelp/pgctl/pull/22.patch","issue_url":"https://api.github.com/repos/Yelp/pgctl/issues/22","number":22,"state":"open","locked":false,"title":"Symlink service directories into $XDG_RUNTIME_DIR","user":{"login":"chriskuehl","id":665269,"avatar_url":"https://avatars.githubusercontent.com/u/665269?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskuehl","html_url":"https://github.com/chriskuehl","followers_url":"https://api.github.com/users/chriskuehl/followers","following_url":"https://api.github.com/users/chriskuehl/following{/other_user}","gists_url":"https://api.github.com/users/chriskuehl/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuehl/subscriptions","organizations_url":"https://api.github.com/users/chriskuehl/orgs","repos_url":"https://api.github.com/users/chriskuehl/repos","events_url":"https://api.github.com/users/chriskuehl/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuehl/received_events","type":"User","site_admin":false},"body":"**not ready** writing a couple of tests for the new functionality, but feel free to start reviewing this.\r\n\r\nThis adds a new config option `pghome` which defaults to `$XDG_RUNTIME_DIR/pgctl` (where `XDG_RUNTIME_DIR` defaults to `~/.run` if not set).\r\n\r\nThe structure looks something like:\r\n```\r\n$ tree ~/.run\r\n/nail/home/ckuehl/.run\r\n└── pgctl\r\n    └── nail\r\n        └── home\r\n            └── ckuehl\r\n                └── proj\r\n                    └── some_project\r\n                        └── playground\r\n                            ├── relode\r\n                            │   └── supervise\r\n                            │       ├── control\r\n                            │       ├── lock\r\n                            │       ├── ok\r\n                            │       └── status\r\n                            ├── uwsgi\r\n                            │   └── supervise\r\n                            │       ├── control\r\n                            │       ├── lock\r\n                            │       ├── ok\r\n                            │       └── status\r\n                            └── watch-templates\r\n                                └── supervise\r\n                                    ├── control\r\n                                    ├── lock\r\n                                    ├── ok\r\n                                    └── status\r\n\r\n13 directories, 12 files\r\n```","created_at":"2015-08-13T23:46:06Z","updated_at":"2015-08-14T04:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3460926fb17cfddf8c2b045f87a255a987ed322e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yelp/pgctl/pulls/22/commits","review_comments_url":"https://api.github.com/repos/Yelp/pgctl/pulls/22/comments","review_comment_url":"https://api.github.com/repos/Yelp/pgctl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yelp/pgctl/issues/22/comments","statuses_url":"https://api.github.com/repos/Yelp/pgctl/statuses/6351a438594cf4873ca936e94412d37d499c2423","head":{"label":"chriskuehl:symlinked-pipes","ref":"symlinked-pipes","sha":"6351a438594cf4873ca936e94412d37d499c2423","user":{"login":"chriskuehl","id":665269,"avatar_url":"https://avatars.githubusercontent.com/u/665269?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskuehl","html_url":"https://github.com/chriskuehl","followers_url":"https://api.github.com/users/chriskuehl/followers","following_url":"https://api.github.com/users/chriskuehl/following{/other_user}","gists_url":"https://api.github.com/users/chriskuehl/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuehl/subscriptions","organizations_url":"https://api.github.com/users/chriskuehl/orgs","repos_url":"https://api.github.com/users/chriskuehl/repos","events_url":"https://api.github.com/users/chriskuehl/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuehl/received_events","type":"User","site_admin":false},"repo":{"id":39904720,"name":"pgctl","full_name":"chriskuehl/pgctl","owner":{"login":"chriskuehl","id":665269,"avatar_url":"https://avatars.githubusercontent.com/u/665269?v=3","gravatar_id":"","url":"https://api.github.com/users/chriskuehl","html_url":"https://github.com/chriskuehl","followers_url":"https://api.github.com/users/chriskuehl/followers","following_url":"https://api.github.com/users/chriskuehl/following{/other_user}","gists_url":"https://api.github.com/users/chriskuehl/gists{/gist_id}","starred_url":"https://api.github.com/users/chriskuehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriskuehl/subscriptions","organizations_url":"https://api.github.com/users/chriskuehl/orgs","repos_url":"https://api.github.com/users/chriskuehl/repos","events_url":"https://api.github.com/users/chriskuehl/events{/privacy}","received_events_url":"https://api.github.com/users/chriskuehl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chriskuehl/pgctl","description":"","fork":true,"url":"https://api.github.com/repos/chriskuehl/pgctl","forks_url":"https://api.github.com/repos/chriskuehl/pgctl/forks","keys_url":"https://api.github.com/repos/chriskuehl/pgctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chriskuehl/pgctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chriskuehl/pgctl/teams","hooks_url":"https://api.github.com/repos/chriskuehl/pgctl/hooks","issue_events_url":"https://api.github.com/repos/chriskuehl/pgctl/issues/events{/number}","events_url":"https://api.github.com/repos/chriskuehl/pgctl/events","assignees_url":"https://api.github.com/repos/chriskuehl/pgctl/assignees{/user}","branches_url":"https://api.github.com/repos/chriskuehl/pgctl/branches{/branch}","tags_url":"https://api.github.com/repos/chriskuehl/pgctl/tags","blobs_url":"https://api.github.com/repos/chriskuehl/pgctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chriskuehl/pgctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chriskuehl/pgctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/chriskuehl/pgctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chriskuehl/pgctl/statuses/{sha}","languages_url":"https://api.github.com/repos/chriskuehl/pgctl/languages","stargazers_url":"https://api.github.com/repos/chriskuehl/pgctl/stargazers","contributors_url":"https://api.github.com/repos/chriskuehl/pgctl/contributors","subscribers_url":"https://api.github.com/repos/chriskuehl/pgctl/subscribers","subscription_url":"https://api.github.com/repos/chriskuehl/pgctl/subscription","commits_url":"https://api.github.com/repos/chriskuehl/pgctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/chriskuehl/pgctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/chriskuehl/pgctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/chriskuehl/pgctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/chriskuehl/pgctl/contents/{+path}","compare_url":"https://api.github.com/repos/chriskuehl/pgctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chriskuehl/pgctl/merges","archive_url":"https://api.github.com/repos/chriskuehl/pgctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chriskuehl/pgctl/downloads","issues_url":"https://api.github.com/repos/chriskuehl/pgctl/issues{/number}","pulls_url":"https://api.github.com/repos/chriskuehl/pgctl/pulls{/number}","milestones_url":"https://api.github.com/repos/chriskuehl/pgctl/milestones{/number}","notifications_url":"https://api.github.com/repos/chriskuehl/pgctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chriskuehl/pgctl/labels{/name}","releases_url":"https://api.github.com/repos/chriskuehl/pgctl/releases{/id}","created_at":"2015-07-29T16:42:12Z","updated_at":"2015-07-29T16:42:12Z","pushed_at":"2015-08-13T23:37:02Z","git_url":"git://github.com/chriskuehl/pgctl.git","ssh_url":"git@github.com:chriskuehl/pgctl.git","clone_url":"https://github.com/chriskuehl/pgctl.git","svn_url":"https://github.com/chriskuehl/pgctl","homepage":null,"size":170,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"add-debug"}},"base":{"label":"Yelp:master","ref":"master","sha":"490d8d25f01fca21401c8380beb2aa919eb3ea1f","user":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"repo":{"id":36691057,"name":"pgctl","full_name":"Yelp/pgctl","owner":{"login":"Yelp","id":49071,"avatar_url":"https://avatars.githubusercontent.com/u/49071?v=3","gravatar_id":"","url":"https://api.github.com/users/Yelp","html_url":"https://github.com/Yelp","followers_url":"https://api.github.com/users/Yelp/followers","following_url":"https://api.github.com/users/Yelp/following{/other_user}","gists_url":"https://api.github.com/users/Yelp/gists{/gist_id}","starred_url":"https://api.github.com/users/Yelp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yelp/subscriptions","organizations_url":"https://api.github.com/users/Yelp/orgs","repos_url":"https://api.github.com/users/Yelp/repos","events_url":"https://api.github.com/users/Yelp/events{/privacy}","received_events_url":"https://api.github.com/users/Yelp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Yelp/pgctl","description":"","fork":false,"url":"https://api.github.com/repos/Yelp/pgctl","forks_url":"https://api.github.com/repos/Yelp/pgctl/forks","keys_url":"https://api.github.com/repos/Yelp/pgctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yelp/pgctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yelp/pgctl/teams","hooks_url":"https://api.github.com/repos/Yelp/pgctl/hooks","issue_events_url":"https://api.github.com/repos/Yelp/pgctl/issues/events{/number}","events_url":"https://api.github.com/repos/Yelp/pgctl/events","assignees_url":"https://api.github.com/repos/Yelp/pgctl/assignees{/user}","branches_url":"https://api.github.com/repos/Yelp/pgctl/branches{/branch}","tags_url":"https://api.github.com/repos/Yelp/pgctl/tags","blobs_url":"https://api.github.com/repos/Yelp/pgctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yelp/pgctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yelp/pgctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yelp/pgctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yelp/pgctl/statuses/{sha}","languages_url":"https://api.github.com/repos/Yelp/pgctl/languages","stargazers_url":"https://api.github.com/repos/Yelp/pgctl/stargazers","contributors_url":"https://api.github.com/repos/Yelp/pgctl/contributors","subscribers_url":"https://api.github.com/repos/Yelp/pgctl/subscribers","subscription_url":"https://api.github.com/repos/Yelp/pgctl/subscription","commits_url":"https://api.github.com/repos/Yelp/pgctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yelp/pgctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yelp/pgctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yelp/pgctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yelp/pgctl/contents/{+path}","compare_url":"https://api.github.com/repos/Yelp/pgctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yelp/pgctl/merges","archive_url":"https://api.github.com/repos/Yelp/pgctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yelp/pgctl/downloads","issues_url":"https://api.github.com/repos/Yelp/pgctl/issues{/number}","pulls_url":"https://api.github.com/repos/Yelp/pgctl/pulls{/number}","milestones_url":"https://api.github.com/repos/Yelp/pgctl/milestones{/number}","notifications_url":"https://api.github.com/repos/Yelp/pgctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yelp/pgctl/labels{/name}","releases_url":"https://api.github.com/repos/Yelp/pgctl/releases{/id}","created_at":"2015-06-01T21:49:46Z","updated_at":"2015-07-29T19:51:03Z","pushed_at":"2015-08-13T23:46:06Z","git_url":"git://github.com/Yelp/pgctl.git","ssh_url":"git@github.com:Yelp/pgctl.git","clone_url":"https://github.com/Yelp/pgctl.git","svn_url":"https://github.com/Yelp/pgctl","homepage":null,"size":426,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yelp/pgctl/pulls/22"},"html":{"href":"https://github.com/Yelp/pgctl/pull/22"},"issue":{"href":"https://api.github.com/repos/Yelp/pgctl/issues/22"},"comments":{"href":"https://api.github.com/repos/Yelp/pgctl/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/Yelp/pgctl/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/Yelp/pgctl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yelp/pgctl/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/Yelp/pgctl/statuses/6351a438594cf4873ca936e94412d37d499c2423"}}}}