{"action":"created","issue":{"url":"https://api.github.com/repos/Unitech/PM2/issues/1397","labels_url":"https://api.github.com/repos/Unitech/PM2/issues/1397/labels{/name}","comments_url":"https://api.github.com/repos/Unitech/PM2/issues/1397/comments","events_url":"https://api.github.com/repos/Unitech/PM2/issues/1397/events","html_url":"https://github.com/Unitech/PM2/issues/1397","id":91369384,"number":1397,"title":"feature request: pm2 ensure_running application.json","user":{"login":"breathe","id":434034,"avatar_url":"https://avatars.githubusercontent.com/u/434034?v=3","gravatar_id":"","url":"https://api.github.com/users/breathe","html_url":"https://github.com/breathe","followers_url":"https://api.github.com/users/breathe/followers","following_url":"https://api.github.com/users/breathe/following{/other_user}","gists_url":"https://api.github.com/users/breathe/gists{/gist_id}","starred_url":"https://api.github.com/users/breathe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breathe/subscriptions","organizations_url":"https://api.github.com/users/breathe/orgs","repos_url":"https://api.github.com/users/breathe/repos","events_url":"https://api.github.com/users/breathe/events{/privacy}","received_events_url":"https://api.github.com/users/breathe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-26T21:37:09Z","updated_at":"2015-06-27T10:18:29Z","closed_at":null,"body":"An 'ensure_running' command that accepted an application.json file and made sure all processes listed were running with correct arguments would be pretty cool -- the behavior I'm imagining:\r\n\r\n```\r\nfor each process in application.json\r\n- if process with <name> is not running, start it \r\n- if process with <name> is running and arguments have changed, stop process with <name>, start process <name> with new configuration\r\n- otherwise -- process is already running with the correct arguments, nothing to do\r\n```\r\n\r\nWould make it simple to manage process lifespan through simple mutations of the json file."},"comment":{"url":"https://api.github.com/repos/Unitech/PM2/issues/comments/116001398","html_url":"https://github.com/Unitech/PM2/issues/1397#issuecomment-116001398","issue_url":"https://api.github.com/repos/Unitech/PM2/issues/1397","id":116001398,"user":{"login":"adrian-ludwig","id":1642500,"avatar_url":"https://avatars.githubusercontent.com/u/1642500?v=3","gravatar_id":"","url":"https://api.github.com/users/adrian-ludwig","html_url":"https://github.com/adrian-ludwig","followers_url":"https://api.github.com/users/adrian-ludwig/followers","following_url":"https://api.github.com/users/adrian-ludwig/following{/other_user}","gists_url":"https://api.github.com/users/adrian-ludwig/gists{/gist_id}","starred_url":"https://api.github.com/users/adrian-ludwig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrian-ludwig/subscriptions","organizations_url":"https://api.github.com/users/adrian-ludwig/orgs","repos_url":"https://api.github.com/users/adrian-ludwig/repos","events_url":"https://api.github.com/users/adrian-ludwig/events{/privacy}","received_events_url":"https://api.github.com/users/adrian-ludwig/received_events","type":"User","site_admin":false},"created_at":"2015-06-27T10:18:29Z","updated_at":"2015-06-27T10:18:29Z","body":"+1\r\nThis would be nice for deployments"}}