{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/osquery/pulls/comments/27544751","id":27544751,"diff_hunk":"@@ -69,7 +72,8 @@ exec_with_env() {\n start() {\n   check_config\n   if [ $OS = \"darwin\" ]; then\n-    launchctl start $PLIST_PATH\n+    cp $PLIST_INSTALLATION_PATH $PLIST_PATH\n+    launchctl load $PLIST_PATH","path":"tools/deployment/osqueryctl","position":30,"original_position":30,"commit_id":"afe76d4f6e0420450f0cc654033ae439f4e78062","original_commit_id":"1fb8d4fa98ba2acc9aa2dd68053962bf77df3131","user":{"login":"theopolis","id":981645,"avatar_url":"https://avatars.githubusercontent.com/u/981645?v=3","gravatar_id":"","url":"https://api.github.com/users/theopolis","html_url":"https://github.com/theopolis","followers_url":"https://api.github.com/users/theopolis/followers","following_url":"https://api.github.com/users/theopolis/following{/other_user}","gists_url":"https://api.github.com/users/theopolis/gists{/gist_id}","starred_url":"https://api.github.com/users/theopolis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theopolis/subscriptions","organizations_url":"https://api.github.com/users/theopolis/orgs","repos_url":"https://api.github.com/users/theopolis/repos","events_url":"https://api.github.com/users/theopolis/events{/privacy}","received_events_url":"https://api.github.com/users/theopolis/received_events","type":"User","site_admin":false},"body":"Ah, I remember now! I wonder if a conditional makes sense here to check if the copied plist exists, if so, copy the \"potentially new\" plist on update. Let me reread some of that initial discussion and think about this.","created_at":"2015-04-01T04:51:37Z","updated_at":"2015-04-01T04:51:37Z","html_url":"https://github.com/facebook/osquery/pull/906#discussion_r27544751","pull_request_url":"https://api.github.com/repos/facebook/osquery/pulls/906","_links":{"self":{"href":"https://api.github.com/repos/facebook/osquery/pulls/comments/27544751"},"html":{"href":"https://github.com/facebook/osquery/pull/906#discussion_r27544751"},"pull_request":{"href":"https://api.github.com/repos/facebook/osquery/pulls/906"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/osquery/pulls/906","id":31897244,"html_url":"https://github.com/facebook/osquery/pull/906","diff_url":"https://github.com/facebook/osquery/pull/906.diff","patch_url":"https://github.com/facebook/osquery/pull/906.patch","issue_url":"https://api.github.com/repos/facebook/osquery/issues/906","number":906,"state":"open","locked":false,"title":"Added clean options, general osqueryctl cleanups","user":{"login":"eastebry","id":1396340,"avatar_url":"https://avatars.githubusercontent.com/u/1396340?v=3","gravatar_id":"","url":"https://api.github.com/users/eastebry","html_url":"https://github.com/eastebry","followers_url":"https://api.github.com/users/eastebry/followers","following_url":"https://api.github.com/users/eastebry/following{/other_user}","gists_url":"https://api.github.com/users/eastebry/gists{/gist_id}","starred_url":"https://api.github.com/users/eastebry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eastebry/subscriptions","organizations_url":"https://api.github.com/users/eastebry/orgs","repos_url":"https://api.github.com/users/eastebry/repos","events_url":"https://api.github.com/users/eastebry/events{/privacy}","received_events_url":"https://api.github.com/users/eastebry/received_events","type":"User","site_admin":false},"body":"* Added a `--clean` option to make_osx_package.sh and `osqueryctl` that will nuke the database, removing the stored query results. This could be useful if you want to have the daemon reemit all the query results in the database.\r\n* Changed how osqueryctl starts and stops the osx daemon. It now uses launchctl load and unload\r\n* Validating the json config file before making the packages.\r\n* Few other small clean-ups","created_at":"2015-03-25T06:50:46Z","updated_at":"2015-04-01T04:51:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17246e511e0fc9d31d1ec86c6d467d8b576a20aa","assignee":{"login":"marpaia","id":927168,"avatar_url":"https://avatars.githubusercontent.com/u/927168?v=3","gravatar_id":"","url":"https://api.github.com/users/marpaia","html_url":"https://github.com/marpaia","followers_url":"https://api.github.com/users/marpaia/followers","following_url":"https://api.github.com/users/marpaia/following{/other_user}","gists_url":"https://api.github.com/users/marpaia/gists{/gist_id}","starred_url":"https://api.github.com/users/marpaia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marpaia/subscriptions","organizations_url":"https://api.github.com/users/marpaia/orgs","repos_url":"https://api.github.com/users/marpaia/repos","events_url":"https://api.github.com/users/marpaia/events{/privacy}","received_events_url":"https://api.github.com/users/marpaia/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/facebook/osquery/pulls/906/commits","review_comments_url":"https://api.github.com/repos/facebook/osquery/pulls/906/comments","review_comment_url":"https://api.github.com/repos/facebook/osquery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/osquery/issues/906/comments","statuses_url":"https://api.github.com/repos/facebook/osquery/statuses/afe76d4f6e0420450f0cc654033ae439f4e78062","head":{"label":"eastebry:902_clean_option","ref":"902_clean_option","sha":"afe76d4f6e0420450f0cc654033ae439f4e78062","user":{"login":"eastebry","id":1396340,"avatar_url":"https://avatars.githubusercontent.com/u/1396340?v=3","gravatar_id":"","url":"https://api.github.com/users/eastebry","html_url":"https://github.com/eastebry","followers_url":"https://api.github.com/users/eastebry/followers","following_url":"https://api.github.com/users/eastebry/following{/other_user}","gists_url":"https://api.github.com/users/eastebry/gists{/gist_id}","starred_url":"https://api.github.com/users/eastebry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eastebry/subscriptions","organizations_url":"https://api.github.com/users/eastebry/orgs","repos_url":"https://api.github.com/users/eastebry/repos","events_url":"https://api.github.com/users/eastebry/events{/privacy}","received_events_url":"https://api.github.com/users/eastebry/received_events","type":"User","site_admin":false},"repo":{"id":25979593,"name":"osquery","full_name":"eastebry/osquery","owner":{"login":"eastebry","id":1396340,"avatar_url":"https://avatars.githubusercontent.com/u/1396340?v=3","gravatar_id":"","url":"https://api.github.com/users/eastebry","html_url":"https://github.com/eastebry","followers_url":"https://api.github.com/users/eastebry/followers","following_url":"https://api.github.com/users/eastebry/following{/other_user}","gists_url":"https://api.github.com/users/eastebry/gists{/gist_id}","starred_url":"https://api.github.com/users/eastebry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eastebry/subscriptions","organizations_url":"https://api.github.com/users/eastebry/orgs","repos_url":"https://api.github.com/users/eastebry/repos","events_url":"https://api.github.com/users/eastebry/events{/privacy}","received_events_url":"https://api.github.com/users/eastebry/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eastebry/osquery","description":"SQL powered operating system instrumentation and monitoring.","fork":true,"url":"https://api.github.com/repos/eastebry/osquery","forks_url":"https://api.github.com/repos/eastebry/osquery/forks","keys_url":"https://api.github.com/repos/eastebry/osquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eastebry/osquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eastebry/osquery/teams","hooks_url":"https://api.github.com/repos/eastebry/osquery/hooks","issue_events_url":"https://api.github.com/repos/eastebry/osquery/issues/events{/number}","events_url":"https://api.github.com/repos/eastebry/osquery/events","assignees_url":"https://api.github.com/repos/eastebry/osquery/assignees{/user}","branches_url":"https://api.github.com/repos/eastebry/osquery/branches{/branch}","tags_url":"https://api.github.com/repos/eastebry/osquery/tags","blobs_url":"https://api.github.com/repos/eastebry/osquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eastebry/osquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eastebry/osquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/eastebry/osquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eastebry/osquery/statuses/{sha}","languages_url":"https://api.github.com/repos/eastebry/osquery/languages","stargazers_url":"https://api.github.com/repos/eastebry/osquery/stargazers","contributors_url":"https://api.github.com/repos/eastebry/osquery/contributors","subscribers_url":"https://api.github.com/repos/eastebry/osquery/subscribers","subscription_url":"https://api.github.com/repos/eastebry/osquery/subscription","commits_url":"https://api.github.com/repos/eastebry/osquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/eastebry/osquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/eastebry/osquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/eastebry/osquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/eastebry/osquery/contents/{+path}","compare_url":"https://api.github.com/repos/eastebry/osquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eastebry/osquery/merges","archive_url":"https://api.github.com/repos/eastebry/osquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eastebry/osquery/downloads","issues_url":"https://api.github.com/repos/eastebry/osquery/issues{/number}","pulls_url":"https://api.github.com/repos/eastebry/osquery/pulls{/number}","milestones_url":"https://api.github.com/repos/eastebry/osquery/milestones{/number}","notifications_url":"https://api.github.com/repos/eastebry/osquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eastebry/osquery/labels{/name}","releases_url":"https://api.github.com/repos/eastebry/osquery/releases{/id}","created_at":"2014-10-30T16:27:23Z","updated_at":"2015-03-25T00:39:57Z","pushed_at":"2015-04-01T04:50:40Z","git_url":"git://github.com/eastebry/osquery.git","ssh_url":"git@github.com:eastebry/osquery.git","clone_url":"https://github.com/eastebry/osquery.git","svn_url":"https://github.com/eastebry/osquery","homepage":"http://osquery.io","size":4860,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"8482b618e3d1802e03ec2710845575ef52234d0d","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":22394357,"name":"osquery","full_name":"facebook/osquery","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/osquery","description":"SQL powered operating system instrumentation, monitoring, and analytics.","fork":false,"url":"https://api.github.com/repos/facebook/osquery","forks_url":"https://api.github.com/repos/facebook/osquery/forks","keys_url":"https://api.github.com/repos/facebook/osquery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/osquery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/osquery/teams","hooks_url":"https://api.github.com/repos/facebook/osquery/hooks","issue_events_url":"https://api.github.com/repos/facebook/osquery/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/osquery/events","assignees_url":"https://api.github.com/repos/facebook/osquery/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/osquery/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/osquery/tags","blobs_url":"https://api.github.com/repos/facebook/osquery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/osquery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/osquery/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/osquery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/osquery/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/osquery/languages","stargazers_url":"https://api.github.com/repos/facebook/osquery/stargazers","contributors_url":"https://api.github.com/repos/facebook/osquery/contributors","subscribers_url":"https://api.github.com/repos/facebook/osquery/subscribers","subscription_url":"https://api.github.com/repos/facebook/osquery/subscription","commits_url":"https://api.github.com/repos/facebook/osquery/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/osquery/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/osquery/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/osquery/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/osquery/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/osquery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/osquery/merges","archive_url":"https://api.github.com/repos/facebook/osquery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/osquery/downloads","issues_url":"https://api.github.com/repos/facebook/osquery/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/osquery/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/osquery/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/osquery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/osquery/labels{/name}","releases_url":"https://api.github.com/repos/facebook/osquery/releases{/id}","created_at":"2014-07-29T20:27:33Z","updated_at":"2015-04-01T03:31:35Z","pushed_at":"2015-04-01T04:50:40Z","git_url":"git://github.com/facebook/osquery.git","ssh_url":"git@github.com:facebook/osquery.git","clone_url":"https://github.com/facebook/osquery.git","svn_url":"https://github.com/facebook/osquery","homepage":"http://osquery.io","size":13963,"stargazers_count":3858,"watchers_count":3858,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":289,"mirror_url":null,"open_issues_count":29,"forks":289,"open_issues":29,"watchers":3858,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/osquery/pulls/906"},"html":{"href":"https://github.com/facebook/osquery/pull/906"},"issue":{"href":"https://api.github.com/repos/facebook/osquery/issues/906"},"comments":{"href":"https://api.github.com/repos/facebook/osquery/issues/906/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/osquery/pulls/906/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/osquery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/osquery/pulls/906/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/osquery/statuses/afe76d4f6e0420450f0cc654033ae439f4e78062"}}}}