{"action":"closed","issue":{"url":"https://api.github.com/repos/Mashape/kong/issues/115","labels_url":"https://api.github.com/repos/Mashape/kong/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/kong/issues/115/comments","events_url":"https://api.github.com/repos/Mashape/kong/issues/115/events","html_url":"https://github.com/Mashape/kong/issues/115","id":66798485,"number":115,"title":"Kong restart should not exit an error when trying to stop Kong","user":{"login":"thefosk","id":964813,"avatar_url":"https://avatars.githubusercontent.com/u/964813?v=3","gravatar_id":"","url":"https://api.github.com/users/thefosk","html_url":"https://github.com/thefosk","followers_url":"https://api.github.com/users/thefosk/followers","following_url":"https://api.github.com/users/thefosk/following{/other_user}","gists_url":"https://api.github.com/users/thefosk/gists{/gist_id}","starred_url":"https://api.github.com/users/thefosk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefosk/subscriptions","organizations_url":"https://api.github.com/users/thefosk/orgs","repos_url":"https://api.github.com/users/thefosk/repos","events_url":"https://api.github.com/users/thefosk/events{/privacy}","received_events_url":"https://api.github.com/users/thefosk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mashape/kong/labels/cli","name":"cli","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"thibaultCha","id":1125431,"avatar_url":"https://avatars.githubusercontent.com/u/1125431?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultCha","html_url":"https://github.com/thibaultCha","followers_url":"https://api.github.com/users/thibaultCha/followers","following_url":"https://api.github.com/users/thibaultCha/following{/other_user}","gists_url":"https://api.github.com/users/thibaultCha/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultCha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultCha/subscriptions","organizations_url":"https://api.github.com/users/thibaultCha/orgs","repos_url":"https://api.github.com/users/thibaultCha/repos","events_url":"https://api.github.com/users/thibaultCha/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultCha/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Mashape/kong/milestones/3","html_url":"https://github.com/Mashape/kong/milestones/0.2.0","labels_url":"https://api.github.com/repos/Mashape/kong/milestones/3/labels","id":1030093,"number":3,"title":"0.2.0","description":"Public release.","creator":{"login":"thibaultCha","id":1125431,"avatar_url":"https://avatars.githubusercontent.com/u/1125431?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultCha","html_url":"https://github.com/thibaultCha","followers_url":"https://api.github.com/users/thibaultCha/followers","following_url":"https://api.github.com/users/thibaultCha/following{/other_user}","gists_url":"https://api.github.com/users/thibaultCha/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultCha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultCha/subscriptions","organizations_url":"https://api.github.com/users/thibaultCha/orgs","repos_url":"https://api.github.com/users/thibaultCha/repos","events_url":"https://api.github.com/users/thibaultCha/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultCha/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":9,"state":"open","created_at":"2015-03-19T21:55:32Z","updated_at":"2015-04-10T21:56:22Z","due_on":"2015-04-28T07:00:00Z","closed_at":null},"comments":8,"created_at":"2015-04-07T06:55:37Z","updated_at":"2015-04-10T21:56:22Z","closed_at":"2015-04-10T21:56:22Z","body":"There are two problems:\r\n\r\n* When executing `kong restart`, if the PID file doesn't exist then don't exit the operation, just skip stopping it and start Kong again. Right now the `restart` operations exists without restarting Kong.\r\n\r\n* In an edge case scenario the PID file exists, but the process doesn't exist. The CLI is trying to kill a PID that doesn't exist anymore and returns an error. Basically [this function](https://github.com/Mashape/kong/blob/master/src/cli/utils/signal.lua#L154) should check not only for the existence of the PID file, but also check that the PID is actually a running process."}}