{"action":"created","comment":{"url":"https://api.github.com/repos/kuzzleio/documentation/pulls/comments/183439820","pull_request_review_id":114436558,"id":183439820,"diff_hunk":"@@ -0,0 +1,42 @@\n+---\n+layout: full.html\n+algolia: true\n+title: Signal Handling\n+order: 1000\n+---\n+\n+# Signal Handling\n+\n+Kuzzle caught some Unix signals, they are distributed in 3 categories :\n+\n+ * Abnormal termination\n+ * Normal termination\n+ * Dump report generation\n+\n+The code related to signal handling can be seen here : [lib/api/kuzzle.js#L183](https://github.com/kuzzleio/kuzzle/blob/master/lib/api/kuzzle.js#L183)\n+\n+## Abnormal termination\n+\n+Concerned signals :\n+ * `SIGQUIT`\n+ * `SIGABRT`\n+ * `SIGPIPE`\n+\n+These signals represents a critical error and will force Kuzzle to quit.  \n+When one of the signal above is caught, Kuzzle will first generate a [dump report]({{ site_base_path }}guide/essentials/cli#dump) and then quit directly.  \n+","path":"src/guide/essentials/signal_handling.md","position":27,"original_position":27,"commit_id":"33ac7ce9b382af418d6493b2abd375e2a08976aa","original_commit_id":"33ac7ce9b382af418d6493b2abd375e2a08976aa","user":{"login":"appacea","id":20719772,"avatar_url":"https://avatars0.githubusercontent.com/u/20719772?v=4","gravatar_id":"","url":"https://api.github.com/users/appacea","html_url":"https://github.com/appacea","followers_url":"https://api.github.com/users/appacea/followers","following_url":"https://api.github.com/users/appacea/following{/other_user}","gists_url":"https://api.github.com/users/appacea/gists{/gist_id}","starred_url":"https://api.github.com/users/appacea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appacea/subscriptions","organizations_url":"https://api.github.com/users/appacea/orgs","repos_url":"https://api.github.com/users/appacea/repos","events_url":"https://api.github.com/users/appacea/events{/privacy}","received_events_url":"https://api.github.com/users/appacea/received_events","type":"User","site_admin":false},"body":"These signals are the result of a critical error and will force Kuzzle to shutdown.\r\nWhen one of the aforementioned Unix signals is detected, Kuzzle will first generate a [dump report]({{ site_base_path }}guide/essentials/cli#dump) and then shutdown.","created_at":"2018-04-23T15:35:01Z","updated_at":"2018-04-23T15:43:55Z","html_url":"https://github.com/kuzzleio/documentation/pull/475#discussion_r183439820","pull_request_url":"https://api.github.com/repos/kuzzleio/documentation/pulls/475","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/documentation/pulls/comments/183439820"},"html":{"href":"https://github.com/kuzzleio/documentation/pull/475#discussion_r183439820"},"pull_request":{"href":"https://api.github.com/repos/kuzzleio/documentation/pulls/475"}}},"pull_request":{"url":"https://api.github.com/repos/kuzzleio/documentation/pulls/475","id":183362924,"html_url":"https://github.com/kuzzleio/documentation/pull/475","diff_url":"https://github.com/kuzzleio/documentation/pull/475.diff","patch_url":"https://github.com/kuzzleio/documentation/pull/475.patch","issue_url":"https://api.github.com/repos/kuzzleio/documentation/issues/475","number":475,"state":"open","locked":false,"title":"Add documentation for signal handling","user":{"login":"Aschen","id":4447392,"avatar_url":"https://avatars3.githubusercontent.com/u/4447392?v=4","gravatar_id":"","url":"https://api.github.com/users/Aschen","html_url":"https://github.com/Aschen","followers_url":"https://api.github.com/users/Aschen/followers","following_url":"https://api.github.com/users/Aschen/following{/other_user}","gists_url":"https://api.github.com/users/Aschen/gists{/gist_id}","starred_url":"https://api.github.com/users/Aschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aschen/subscriptions","organizations_url":"https://api.github.com/users/Aschen/orgs","repos_url":"https://api.github.com/users/Aschen/repos","events_url":"https://api.github.com/users/Aschen/events{/privacy}","received_events_url":"https://api.github.com/users/Aschen/received_events","type":"User","site_admin":false},"body":"## What does this PR do ?\r\n\r\nThis PR add documentation about the signal handling performed by Kuzzle.   \r\nKuzzle handle various signals for different actions and this should be documented.   \r\nI added a new page in the Kuzzle - Essential section.  \r\n\r\n\r\nFix [backlog#244](https://github.com/kuzzleio/kuzzle-backlog/issues/244)\r\n\r\n### How should this be manually tested?\r\n\r\n  - Step 1 : Go to https://deploy-preview-475--hawker-sarah-11661.netlify.com\r\n  - Step 2 : Click on `Essentials`\r\n  - Step 3 :  Click on `Signal handling`\r\n\r\n### Other changes\r\n\r\n### Boyscout\r\n\r\n - Add screenshot section to pull request template\r\n\r\n### Screenshot (if appropriate)\r\n\r\n![image](https://user-images.githubusercontent.com/4447392/39115700-c8e3f8d8-46e2-11e8-83fd-af0b4f99225a.png)\r\n","created_at":"2018-04-23T08:43:11Z","updated_at":"2018-04-23T15:43:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abbe37ce5683038a104fb12212b13197a0388620","assignee":{"login":"Aschen","id":4447392,"avatar_url":"https://avatars3.githubusercontent.com/u/4447392?v=4","gravatar_id":"","url":"https://api.github.com/users/Aschen","html_url":"https://github.com/Aschen","followers_url":"https://api.github.com/users/Aschen/followers","following_url":"https://api.github.com/users/Aschen/following{/other_user}","gists_url":"https://api.github.com/users/Aschen/gists{/gist_id}","starred_url":"https://api.github.com/users/Aschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aschen/subscriptions","organizations_url":"https://api.github.com/users/Aschen/orgs","repos_url":"https://api.github.com/users/Aschen/repos","events_url":"https://api.github.com/users/Aschen/events{/privacy}","received_events_url":"https://api.github.com/users/Aschen/received_events","type":"User","site_admin":false},"assignees":[{"login":"Aschen","id":4447392,"avatar_url":"https://avatars3.githubusercontent.com/u/4447392?v=4","gravatar_id":"","url":"https://api.github.com/users/Aschen","html_url":"https://github.com/Aschen","followers_url":"https://api.github.com/users/Aschen/followers","following_url":"https://api.github.com/users/Aschen/following{/other_user}","gists_url":"https://api.github.com/users/Aschen/gists{/gist_id}","starred_url":"https://api.github.com/users/Aschen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aschen/subscriptions","organizations_url":"https://api.github.com/users/Aschen/orgs","repos_url":"https://api.github.com/users/Aschen/repos","events_url":"https://api.github.com/users/Aschen/events{/privacy}","received_events_url":"https://api.github.com/users/Aschen/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":562376208,"url":"https://api.github.com/repos/kuzzleio/documentation/labels/changelog:enhancements","name":"changelog:enhancements","color":"84b6eb","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/kuzzleio/documentation/pulls/475/commits","review_comments_url":"https://api.github.com/repos/kuzzleio/documentation/pulls/475/comments","review_comment_url":"https://api.github.com/repos/kuzzleio/documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kuzzleio/documentation/issues/475/comments","statuses_url":"https://api.github.com/repos/kuzzleio/documentation/statuses/33ac7ce9b382af418d6493b2abd375e2a08976aa","head":{"label":"kuzzleio:add_signal_handling","ref":"add_signal_handling","sha":"33ac7ce9b382af418d6493b2abd375e2a08976aa","user":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":77130862,"name":"documentation","full_name":"kuzzleio/documentation","owner":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kuzzleio/documentation","description":"Source of http://docs.kuzzle.io/","fork":false,"url":"https://api.github.com/repos/kuzzleio/documentation","forks_url":"https://api.github.com/repos/kuzzleio/documentation/forks","keys_url":"https://api.github.com/repos/kuzzleio/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/documentation/teams","hooks_url":"https://api.github.com/repos/kuzzleio/documentation/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/documentation/events","assignees_url":"https://api.github.com/repos/kuzzleio/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/documentation/tags","blobs_url":"https://api.github.com/repos/kuzzleio/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/documentation/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/documentation/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/documentation/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/documentation/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/documentation/subscription","commits_url":"https://api.github.com/repos/kuzzleio/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/documentation/merges","archive_url":"https://api.github.com/repos/kuzzleio/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/documentation/downloads","issues_url":"https://api.github.com/repos/kuzzleio/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/documentation/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/documentation/deployments","created_at":"2016-12-22T09:19:51Z","updated_at":"2018-04-20T13:39:06Z","pushed_at":"2018-04-23T08:43:12Z","git_url":"git://github.com/kuzzleio/documentation.git","ssh_url":"git@github.com:kuzzleio/documentation.git","clone_url":"https://github.com/kuzzleio/documentation.git","svn_url":"https://github.com/kuzzleio/documentation","homepage":"","size":275350,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":51,"watchers":0,"default_branch":"master"}},"base":{"label":"kuzzleio:master","ref":"master","sha":"868d249d7361fb34c4d2ed6ba044d19be61064a6","user":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":77130862,"name":"documentation","full_name":"kuzzleio/documentation","owner":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars1.githubusercontent.com/u/12933347?v=4","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kuzzleio/documentation","description":"Source of http://docs.kuzzle.io/","fork":false,"url":"https://api.github.com/repos/kuzzleio/documentation","forks_url":"https://api.github.com/repos/kuzzleio/documentation/forks","keys_url":"https://api.github.com/repos/kuzzleio/documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/documentation/teams","hooks_url":"https://api.github.com/repos/kuzzleio/documentation/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/documentation/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/documentation/events","assignees_url":"https://api.github.com/repos/kuzzleio/documentation/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/documentation/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/documentation/tags","blobs_url":"https://api.github.com/repos/kuzzleio/documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/documentation/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/documentation/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/documentation/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/documentation/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/documentation/subscription","commits_url":"https://api.github.com/repos/kuzzleio/documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/documentation/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/documentation/merges","archive_url":"https://api.github.com/repos/kuzzleio/documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/documentation/downloads","issues_url":"https://api.github.com/repos/kuzzleio/documentation/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/documentation/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/documentation/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/documentation/deployments","created_at":"2016-12-22T09:19:51Z","updated_at":"2018-04-20T13:39:06Z","pushed_at":"2018-04-23T08:43:12Z","git_url":"git://github.com/kuzzleio/documentation.git","ssh_url":"git@github.com:kuzzleio/documentation.git","clone_url":"https://github.com/kuzzleio/documentation.git","svn_url":"https://github.com/kuzzleio/documentation","homepage":"","size":275350,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":5,"open_issues":51,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/documentation/pulls/475"},"html":{"href":"https://github.com/kuzzleio/documentation/pull/475"},"issue":{"href":"https://api.github.com/repos/kuzzleio/documentation/issues/475"},"comments":{"href":"https://api.github.com/repos/kuzzleio/documentation/issues/475/comments"},"review_comments":{"href":"https://api.github.com/repos/kuzzleio/documentation/pulls/475/comments"},"review_comment":{"href":"https://api.github.com/repos/kuzzleio/documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kuzzleio/documentation/pulls/475/commits"},"statuses":{"href":"https://api.github.com/repos/kuzzleio/documentation/statuses/33ac7ce9b382af418d6493b2abd375e2a08976aa"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"appacea"}}