{"action":"created","issue":{"url":"https://api.github.com/repos/helix-collective/camus/issues/39","repository_url":"https://api.github.com/repos/helix-collective/camus","labels_url":"https://api.github.com/repos/helix-collective/camus/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/helix-collective/camus/issues/39/comments","events_url":"https://api.github.com/repos/helix-collective/camus/issues/39/events","html_url":"https://github.com/helix-collective/camus/issues/39","id":152058891,"number":39,"title":"Change camus so on startup it automatically starts the last binary that it had set as active.","user":{"login":"jsuresh","id":157815,"avatar_url":"https://avatars.githubusercontent.com/u/157815?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuresh","html_url":"https://github.com/jsuresh","followers_url":"https://api.github.com/users/jsuresh/followers","following_url":"https://api.github.com/users/jsuresh/following{/other_user}","gists_url":"https://api.github.com/users/jsuresh/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuresh/subscriptions","organizations_url":"https://api.github.com/users/jsuresh/orgs","repos_url":"https://api.github.com/users/jsuresh/repos","events_url":"https://api.github.com/users/jsuresh/events{/privacy}","received_events_url":"https://api.github.com/users/jsuresh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/helix-collective/camus/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-30T23:26:06Z","updated_at":"2016-05-04T06:14:11Z","closed_at":null,"body":"Sticking by the 'one source of truth' design philosophy in camus, we should use the HAProxy config to decide what the last deploy was, and start it if it's not running.\r\n\r\n@barryskal has already written some code that pulls this information out of the HAProxy stats page, so this change should be pretty straight forward, that is\r\n   1. On camus startup, start HAproxy (if a config file already exists)\r\n   2. If the active deploy isn't running, and we know about it, then start that deploy (There's already code that auto-starts deploys that have stopped, just need to (potentially factor) and call that code from the camus server startup flow."},"comment":{"url":"https://api.github.com/repos/helix-collective/camus/issues/comments/216754243","html_url":"https://github.com/helix-collective/camus/issues/39#issuecomment-216754243","issue_url":"https://api.github.com/repos/helix-collective/camus/issues/39","id":216754243,"user":{"login":"jsuresh","id":157815,"avatar_url":"https://avatars.githubusercontent.com/u/157815?v=3","gravatar_id":"","url":"https://api.github.com/users/jsuresh","html_url":"https://github.com/jsuresh","followers_url":"https://api.github.com/users/jsuresh/followers","following_url":"https://api.github.com/users/jsuresh/following{/other_user}","gists_url":"https://api.github.com/users/jsuresh/gists{/gist_id}","starred_url":"https://api.github.com/users/jsuresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsuresh/subscriptions","organizations_url":"https://api.github.com/users/jsuresh/orgs","repos_url":"https://api.github.com/users/jsuresh/repos","events_url":"https://api.github.com/users/jsuresh/events{/privacy}","received_events_url":"https://api.github.com/users/jsuresh/received_events","type":"User","site_admin":false},"created_at":"2016-05-04T06:14:11Z","updated_at":"2016-05-04T06:14:11Z","body":"@latos can you comment/edit this as you had a clear Idea in your head as well. Want to make sure I haven't missed something"}}