{"action":"created","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/396","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/396/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/396/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/396/events","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/396","id":113856419,"number":396,"title":"Distinct exit codes for rabbitmqctl, rabbitmq-plugins, etc","user":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/labels/effort-low","name":"effort-low","color":"88b3e4"},{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/labels/enhancement","name":"enhancement","color":"009800"},{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/labels/usability","name":"usability","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-10-28T16:05:03Z","updated_at":"2015-11-09T21:34:52Z","closed_at":"2015-11-09T21:34:52Z","body":"Per discussion with @dims.\r\n\r\nIt would be helpful to have distinctive (and standard, to the extent to which it is standard across various UNIX-y operating systems) exit codes in case an operation doesn't succeed. The goal is to give those provisioning RabbitMQ a way to retry on certain failures but not all. Currently our exit codes are `0` and `2` (from a few failures I could easily trigger).\r\n\r\nThis is post `3.6.0`. I think this can go into `3.6.x`: most users who check return codes likely check for `0` and `non-0` as they are random."},"comment":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/comments/155204165","html_url":"https://github.com/rabbitmq/rabbitmq-server/issues/396#issuecomment-155204165","issue_url":"https://api.github.com/repos/rabbitmq/rabbitmq-server/issues/396","id":155204165,"user":{"login":"michaelklishin","id":1090,"avatar_url":"https://avatars.githubusercontent.com/u/1090?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelklishin","html_url":"https://github.com/michaelklishin","followers_url":"https://api.github.com/users/michaelklishin/followers","following_url":"https://api.github.com/users/michaelklishin/following{/other_user}","gists_url":"https://api.github.com/users/michaelklishin/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelklishin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelklishin/subscriptions","organizations_url":"https://api.github.com/users/michaelklishin/orgs","repos_url":"https://api.github.com/users/michaelklishin/repos","events_url":"https://api.github.com/users/michaelklishin/events{/privacy}","received_events_url":"https://api.github.com/users/michaelklishin/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T21:34:52Z","updated_at":"2015-11-09T21:34:52Z","body":"I believe #412 largely addresses this. Feel free to suggest/contribute smaller improvements. Better command line arguments framework will also greatly help make the exit codes more fine grained and sensible."}}