{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/airwoflgh/knock/pulls/1","id":51962589,"html_url":"https://github.com/airwoflgh/knock/pull/1","diff_url":"https://github.com/airwoflgh/knock/pull/1.diff","patch_url":"https://github.com/airwoflgh/knock/pull/1.patch","issue_url":"https://api.github.com/repos/airwoflgh/knock/issues/1","number":1,"state":"open","locked":false,"title":"Update reload to exit if parseconfig fails","user":{"login":"airwoflgh","id":8410932,"avatar_url":"https://avatars.githubusercontent.com/u/8410932?v=3","gravatar_id":"","url":"https://api.github.com/users/airwoflgh","html_url":"https://github.com/airwoflgh","followers_url":"https://api.github.com/users/airwoflgh/followers","following_url":"https://api.github.com/users/airwoflgh/following{/other_user}","gists_url":"https://api.github.com/users/airwoflgh/gists{/gist_id}","starred_url":"https://api.github.com/users/airwoflgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airwoflgh/subscriptions","organizations_url":"https://api.github.com/users/airwoflgh/orgs","repos_url":"https://api.github.com/users/airwoflgh/repos","events_url":"https://api.github.com/users/airwoflgh/events{/privacy}","received_events_url":"https://api.github.com/users/airwoflgh/received_events","type":"User","site_admin":false},"body":"I spotted that reload didn't exit when parseconfig failed and would continue to run with no knocks configured.\r\n\r\nUpdated the code to still close the logfile and exit if parseconfig fails.","created_at":"2015-11-27T06:05:27Z","updated_at":"2015-11-27T06:05:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/airwoflgh/knock/pulls/1/commits","review_comments_url":"https://api.github.com/repos/airwoflgh/knock/pulls/1/comments","review_comment_url":"https://api.github.com/repos/airwoflgh/knock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/airwoflgh/knock/issues/1/comments","statuses_url":"https://api.github.com/repos/airwoflgh/knock/statuses/64230a19c67e5bc5545d8810bc416d1dc7887c04","head":{"label":"airwoflgh:airwoflgh-reload_patch_1","ref":"airwoflgh-reload_patch_1","sha":"64230a19c67e5bc5545d8810bc416d1dc7887c04","user":{"login":"airwoflgh","id":8410932,"avatar_url":"https://avatars.githubusercontent.com/u/8410932?v=3","gravatar_id":"","url":"https://api.github.com/users/airwoflgh","html_url":"https://github.com/airwoflgh","followers_url":"https://api.github.com/users/airwoflgh/followers","following_url":"https://api.github.com/users/airwoflgh/following{/other_user}","gists_url":"https://api.github.com/users/airwoflgh/gists{/gist_id}","starred_url":"https://api.github.com/users/airwoflgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airwoflgh/subscriptions","organizations_url":"https://api.github.com/users/airwoflgh/orgs","repos_url":"https://api.github.com/users/airwoflgh/repos","events_url":"https://api.github.com/users/airwoflgh/events{/privacy}","received_events_url":"https://api.github.com/users/airwoflgh/received_events","type":"User","site_admin":false},"repo":{"id":46961313,"name":"knock","full_name":"airwoflgh/knock","owner":{"login":"airwoflgh","id":8410932,"avatar_url":"https://avatars.githubusercontent.com/u/8410932?v=3","gravatar_id":"","url":"https://api.github.com/users/airwoflgh","html_url":"https://github.com/airwoflgh","followers_url":"https://api.github.com/users/airwoflgh/followers","following_url":"https://api.github.com/users/airwoflgh/following{/other_user}","gists_url":"https://api.github.com/users/airwoflgh/gists{/gist_id}","starred_url":"https://api.github.com/users/airwoflgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airwoflgh/subscriptions","organizations_url":"https://api.github.com/users/airwoflgh/orgs","repos_url":"https://api.github.com/users/airwoflgh/repos","events_url":"https://api.github.com/users/airwoflgh/events{/privacy}","received_events_url":"https://api.github.com/users/airwoflgh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/airwoflgh/knock","description":"A port-knocking daemon","fork":true,"url":"https://api.github.com/repos/airwoflgh/knock","forks_url":"https://api.github.com/repos/airwoflgh/knock/forks","keys_url":"https://api.github.com/repos/airwoflgh/knock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airwoflgh/knock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airwoflgh/knock/teams","hooks_url":"https://api.github.com/repos/airwoflgh/knock/hooks","issue_events_url":"https://api.github.com/repos/airwoflgh/knock/issues/events{/number}","events_url":"https://api.github.com/repos/airwoflgh/knock/events","assignees_url":"https://api.github.com/repos/airwoflgh/knock/assignees{/user}","branches_url":"https://api.github.com/repos/airwoflgh/knock/branches{/branch}","tags_url":"https://api.github.com/repos/airwoflgh/knock/tags","blobs_url":"https://api.github.com/repos/airwoflgh/knock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airwoflgh/knock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airwoflgh/knock/git/refs{/sha}","trees_url":"https://api.github.com/repos/airwoflgh/knock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airwoflgh/knock/statuses/{sha}","languages_url":"https://api.github.com/repos/airwoflgh/knock/languages","stargazers_url":"https://api.github.com/repos/airwoflgh/knock/stargazers","contributors_url":"https://api.github.com/repos/airwoflgh/knock/contributors","subscribers_url":"https://api.github.com/repos/airwoflgh/knock/subscribers","subscription_url":"https://api.github.com/repos/airwoflgh/knock/subscription","commits_url":"https://api.github.com/repos/airwoflgh/knock/commits{/sha}","git_commits_url":"https://api.github.com/repos/airwoflgh/knock/git/commits{/sha}","comments_url":"https://api.github.com/repos/airwoflgh/knock/comments{/number}","issue_comment_url":"https://api.github.com/repos/airwoflgh/knock/issues/comments{/number}","contents_url":"https://api.github.com/repos/airwoflgh/knock/contents/{+path}","compare_url":"https://api.github.com/repos/airwoflgh/knock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airwoflgh/knock/merges","archive_url":"https://api.github.com/repos/airwoflgh/knock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airwoflgh/knock/downloads","issues_url":"https://api.github.com/repos/airwoflgh/knock/issues{/number}","pulls_url":"https://api.github.com/repos/airwoflgh/knock/pulls{/number}","milestones_url":"https://api.github.com/repos/airwoflgh/knock/milestones{/number}","notifications_url":"https://api.github.com/repos/airwoflgh/knock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airwoflgh/knock/labels{/name}","releases_url":"https://api.github.com/repos/airwoflgh/knock/releases{/id}","created_at":"2015-11-27T05:27:08Z","updated_at":"2015-11-27T05:27:09Z","pushed_at":"2015-11-27T06:02:45Z","git_url":"git://github.com/airwoflgh/knock.git","ssh_url":"git@github.com:airwoflgh/knock.git","clone_url":"https://github.com/airwoflgh/knock.git","svn_url":"https://github.com/airwoflgh/knock","homepage":"http://www.zeroflux.org/projects/knock","size":127,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"airwoflgh:master","ref":"master","sha":"e566d49c3ef2897ec4eb496eb7a21efff89b2a3b","user":{"login":"airwoflgh","id":8410932,"avatar_url":"https://avatars.githubusercontent.com/u/8410932?v=3","gravatar_id":"","url":"https://api.github.com/users/airwoflgh","html_url":"https://github.com/airwoflgh","followers_url":"https://api.github.com/users/airwoflgh/followers","following_url":"https://api.github.com/users/airwoflgh/following{/other_user}","gists_url":"https://api.github.com/users/airwoflgh/gists{/gist_id}","starred_url":"https://api.github.com/users/airwoflgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airwoflgh/subscriptions","organizations_url":"https://api.github.com/users/airwoflgh/orgs","repos_url":"https://api.github.com/users/airwoflgh/repos","events_url":"https://api.github.com/users/airwoflgh/events{/privacy}","received_events_url":"https://api.github.com/users/airwoflgh/received_events","type":"User","site_admin":false},"repo":{"id":46961313,"name":"knock","full_name":"airwoflgh/knock","owner":{"login":"airwoflgh","id":8410932,"avatar_url":"https://avatars.githubusercontent.com/u/8410932?v=3","gravatar_id":"","url":"https://api.github.com/users/airwoflgh","html_url":"https://github.com/airwoflgh","followers_url":"https://api.github.com/users/airwoflgh/followers","following_url":"https://api.github.com/users/airwoflgh/following{/other_user}","gists_url":"https://api.github.com/users/airwoflgh/gists{/gist_id}","starred_url":"https://api.github.com/users/airwoflgh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airwoflgh/subscriptions","organizations_url":"https://api.github.com/users/airwoflgh/orgs","repos_url":"https://api.github.com/users/airwoflgh/repos","events_url":"https://api.github.com/users/airwoflgh/events{/privacy}","received_events_url":"https://api.github.com/users/airwoflgh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/airwoflgh/knock","description":"A port-knocking daemon","fork":true,"url":"https://api.github.com/repos/airwoflgh/knock","forks_url":"https://api.github.com/repos/airwoflgh/knock/forks","keys_url":"https://api.github.com/repos/airwoflgh/knock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airwoflgh/knock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airwoflgh/knock/teams","hooks_url":"https://api.github.com/repos/airwoflgh/knock/hooks","issue_events_url":"https://api.github.com/repos/airwoflgh/knock/issues/events{/number}","events_url":"https://api.github.com/repos/airwoflgh/knock/events","assignees_url":"https://api.github.com/repos/airwoflgh/knock/assignees{/user}","branches_url":"https://api.github.com/repos/airwoflgh/knock/branches{/branch}","tags_url":"https://api.github.com/repos/airwoflgh/knock/tags","blobs_url":"https://api.github.com/repos/airwoflgh/knock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airwoflgh/knock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airwoflgh/knock/git/refs{/sha}","trees_url":"https://api.github.com/repos/airwoflgh/knock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airwoflgh/knock/statuses/{sha}","languages_url":"https://api.github.com/repos/airwoflgh/knock/languages","stargazers_url":"https://api.github.com/repos/airwoflgh/knock/stargazers","contributors_url":"https://api.github.com/repos/airwoflgh/knock/contributors","subscribers_url":"https://api.github.com/repos/airwoflgh/knock/subscribers","subscription_url":"https://api.github.com/repos/airwoflgh/knock/subscription","commits_url":"https://api.github.com/repos/airwoflgh/knock/commits{/sha}","git_commits_url":"https://api.github.com/repos/airwoflgh/knock/git/commits{/sha}","comments_url":"https://api.github.com/repos/airwoflgh/knock/comments{/number}","issue_comment_url":"https://api.github.com/repos/airwoflgh/knock/issues/comments{/number}","contents_url":"https://api.github.com/repos/airwoflgh/knock/contents/{+path}","compare_url":"https://api.github.com/repos/airwoflgh/knock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airwoflgh/knock/merges","archive_url":"https://api.github.com/repos/airwoflgh/knock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airwoflgh/knock/downloads","issues_url":"https://api.github.com/repos/airwoflgh/knock/issues{/number}","pulls_url":"https://api.github.com/repos/airwoflgh/knock/pulls{/number}","milestones_url":"https://api.github.com/repos/airwoflgh/knock/milestones{/number}","notifications_url":"https://api.github.com/repos/airwoflgh/knock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airwoflgh/knock/labels{/name}","releases_url":"https://api.github.com/repos/airwoflgh/knock/releases{/id}","created_at":"2015-11-27T05:27:08Z","updated_at":"2015-11-27T05:27:09Z","pushed_at":"2015-11-27T06:02:45Z","git_url":"git://github.com/airwoflgh/knock.git","ssh_url":"git@github.com:airwoflgh/knock.git","clone_url":"https://github.com/airwoflgh/knock.git","svn_url":"https://github.com/airwoflgh/knock","homepage":"http://www.zeroflux.org/projects/knock","size":127,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airwoflgh/knock/pulls/1"},"html":{"href":"https://github.com/airwoflgh/knock/pull/1"},"issue":{"href":"https://api.github.com/repos/airwoflgh/knock/issues/1"},"comments":{"href":"https://api.github.com/repos/airwoflgh/knock/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/airwoflgh/knock/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/airwoflgh/knock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/airwoflgh/knock/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/airwoflgh/knock/statuses/64230a19c67e5bc5545d8810bc416d1dc7887c04"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":10,"deletions":4,"changed_files":1}}