{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/pm2/issues/2484","repository_url":"https://api.github.com/repos/Unitech/pm2","labels_url":"https://api.github.com/repos/Unitech/pm2/issues/2484/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/pm2/issues/2484/comments","events_url":"https://api.github.com/repos/Unitech/pm2/issues/2484/events","html_url":"https://github.com/Unitech/pm2/issues/2484","id":186229199,"number":2484,"title":"pm2 kill has exit code 1","user":{"login":"centigrade-thomas-becker","id":11942729,"avatar_url":"https://avatars.githubusercontent.com/u/11942729?v=3","gravatar_id":"","url":"https://api.github.com/users/centigrade-thomas-becker","html_url":"https://github.com/centigrade-thomas-becker","followers_url":"https://api.github.com/users/centigrade-thomas-becker/followers","following_url":"https://api.github.com/users/centigrade-thomas-becker/following{/other_user}","gists_url":"https://api.github.com/users/centigrade-thomas-becker/gists{/gist_id}","starred_url":"https://api.github.com/users/centigrade-thomas-becker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/centigrade-thomas-becker/subscriptions","organizations_url":"https://api.github.com/users/centigrade-thomas-becker/orgs","repos_url":"https://api.github.com/users/centigrade-thomas-becker/repos","events_url":"https://api.github.com/users/centigrade-thomas-becker/events{/privacy}","received_events_url":"https://api.github.com/users/centigrade-thomas-becker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-31T08:31:33Z","updated_at":"2016-10-31T09:19:46Z","closed_at":null,"body":"#### Expected behaviour\r\n\r\nWhen no error occured then `pm2 kill` should exit with code 0\r\n\r\n#### Actual behaviour\r\n\r\n`pm2 kill` has exit code 1\r\n\r\n#### Steps to reproduce\r\n\r\nRunning `pm2 kill` when no processes are present\r\n\r\n```\r\n$ pm2 kill\r\n[PM2] Spawning PM2 daemon with pm2_home=D:\\foobar\\pm2\r\n[PM2] PM2 Successfully daemonized\r\n[PM2] Stopping PM2...\r\n[PM2][WARN] No process found\r\n[PM2] All processes have been stopped and deleted\r\n\r\n$ echo %ERRORLEVEL%\r\n1\r\n```\r\n\r\nRunning `pm2 --kill` when some processes are present\r\n\r\n```\r\n$ pm2 kill\r\n[PM2] Stopping PM2...\r\n\r\n>>>> In-memory PM2 is out-of-date, do:\r\n>>>> $ pm2 update\r\nIn memory PM2 version: 2.0.12\r\nLocal PM2 version: 2.0.19\r\n\r\n[PM2] Applying action deleteProcessId on app [all](ids: 0)\r\n[PM2] [foobar](0) ✓\r\n[PM2] All processes have been stopped and deleted\r\n\r\n$ echo %ERRORLEVEL%\r\n1\r\n```\r\n\r\n\r\n#### Software versions used\r\n\r\n```\r\nOS         : Windows 8.1\r\nnode.js    : 6.8.1\r\nPM2        : 2.0.19\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Unitech/pm2/issues/comments/257246860","html_url":"https://github.com/Unitech/pm2/issues/2484#issuecomment-257246860","issue_url":"https://api.github.com/repos/Unitech/pm2/issues/2484","id":257246860,"user":{"login":"Unitech","id":757747,"avatar_url":"https://avatars.githubusercontent.com/u/757747?v=3","gravatar_id":"","url":"https://api.github.com/users/Unitech","html_url":"https://github.com/Unitech","followers_url":"https://api.github.com/users/Unitech/followers","following_url":"https://api.github.com/users/Unitech/following{/other_user}","gists_url":"https://api.github.com/users/Unitech/gists{/gist_id}","starred_url":"https://api.github.com/users/Unitech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unitech/subscriptions","organizations_url":"https://api.github.com/users/Unitech/orgs","repos_url":"https://api.github.com/users/Unitech/repos","events_url":"https://api.github.com/users/Unitech/events{/privacy}","received_events_url":"https://api.github.com/users/Unitech/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T09:19:46Z","updated_at":"2016-10-31T09:19:46Z","body":"```\r\nshant@xxx: ~/keymetrics/pm2\r\n>>> pm2 kill\r\n[PM2] Stopping PM2...\r\n[PM2][WARN] No process found\r\n[PM2] All processes have been stopped and deleted\r\n[PM2] PM2 stopped\r\n\r\nshant@xxx: ~/keymetrics/pm2\r\n>>> echo $?\r\n0\r\n```"}}
{"actor":{"display_login":"Unitech"}}