{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/PM2/issues/1232","labels_url":"https://api.github.com/repos/Unitech/PM2/issues/1232/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/PM2/issues/1232/comments","events_url":"https://api.github.com/repos/Unitech/PM2/issues/1232/events","html_url":"https://github.com/Unitech/PM2/issues/1232","id":72670871,"number":1232,"title":"Programmatic API: restart('all') breaks when called from pm2-managed process","user":{"login":"djphoenix","id":1833493,"avatar_url":"https://avatars.githubusercontent.com/u/1833493?v=3","gravatar_id":"","url":"https://api.github.com/users/djphoenix","html_url":"https://github.com/djphoenix","followers_url":"https://api.github.com/users/djphoenix/followers","following_url":"https://api.github.com/users/djphoenix/following{/other_user}","gists_url":"https://api.github.com/users/djphoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/djphoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djphoenix/subscriptions","organizations_url":"https://api.github.com/users/djphoenix/orgs","repos_url":"https://api.github.com/users/djphoenix/repos","events_url":"https://api.github.com/users/djphoenix/events{/privacy}","received_events_url":"https://api.github.com/users/djphoenix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-02T16:58:38Z","updated_at":"2015-05-04T18:15:18Z","closed_at":"2015-05-04T18:15:18Z","body":"I writing web monitoring service. So, it hosted by same process of PM2 that other hosts. Invoking pm2.restart('all') breaks after monitoring service - all services added after that are not restarted.\r\n\r\n![2015-05-02 19 53 01](https://cloud.githubusercontent.com/assets/1833493/7441916/971fb4f8-f105-11e4-881a-2ab29e454679.png)\r\n\r\nenv:\r\n```\r\n$ node -v\r\nv0.12.2\r\n$ pm2 -v\r\n0.12.12\r\n```"},"comment":{"url":"https://api.github.com/repos/Unitech/PM2/issues/comments/98802197","html_url":"https://github.com/Unitech/PM2/issues/1232#issuecomment-98802197","issue_url":"https://api.github.com/repos/Unitech/PM2/issues/1232","id":98802197,"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":"2015-05-04T18:15:18Z","updated_at":"2015-05-04T18:15:18Z","body":"You restart the app that restarts the other processes. This \"monitoring app\" should not be managed by PM2 or you need to restart all process name but not monit\r\n"}}