{"action":"opened","issue":{"url":"https://api.github.com/repos/sensu/sensu/issues/1080","labels_url":"https://api.github.com/repos/sensu/sensu/issues/1080/labels{/name}","comments_url":"https://api.github.com/repos/sensu/sensu/issues/1080/comments","events_url":"https://api.github.com/repos/sensu/sensu/issues/1080/events","html_url":"https://github.com/sensu/sensu/issues/1080","id":113332770,"number":1080,"title":"If a Sensu service can't start, it should return a non-0 exit code","user":{"login":"multani","id":65311,"avatar_url":"https://avatars.githubusercontent.com/u/65311?v=3","gravatar_id":"","url":"https://api.github.com/users/multani","html_url":"https://github.com/multani","followers_url":"https://api.github.com/users/multani/followers","following_url":"https://api.github.com/users/multani/following{/other_user}","gists_url":"https://api.github.com/users/multani/gists{/gist_id}","starred_url":"https://api.github.com/users/multani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/multani/subscriptions","organizations_url":"https://api.github.com/users/multani/orgs","repos_url":"https://api.github.com/users/multani/repos","events_url":"https://api.github.com/users/multani/events{/privacy}","received_events_url":"https://api.github.com/users/multani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T11:08:09Z","updated_at":"2015-10-26T11:08:09Z","closed_at":null,"body":"I currently face this problem:\r\n```\r\n$ sudo -u sensu /opt/sensu/bin/sensu-server -d /tmp/empty -L debug\r\n{\"timestamp\":\"2015-10-26T12:05:55.041377+0100\",\"level\":\"warn\",\"message\":\"loading config files from directory\",\"directory\":\"/tmp/empty\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.058268+0100\",\"level\":\"warn\",\"message\":\"loaded extension\",\"type\":\"mutator\",\"name\":\"ruby_hash\",\"description\":\"returns ruby hash event data\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.058439+0100\",\"level\":\"warn\",\"message\":\"loaded extension\",\"type\":\"mutator\",\"name\":\"json\",\"description\":\"returns JSON formatted event data\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.058546+0100\",\"level\":\"warn\",\"message\":\"loaded extension\",\"type\":\"mutator\",\"name\":\"only_check_output\",\"description\":\"returns check output\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.058644+0100\",\"level\":\"warn\",\"message\":\"loaded extension\",\"type\":\"handler\",\"name\":\"debug\",\"description\":\"returns raw event data\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.059025+0100\",\"level\":\"debug\",\"message\":\"connecting to redis\",\"settings\":null}\r\n{\"timestamp\":\"2015-10-26T12:05:55.059338+0100\",\"level\":\"debug\",\"message\":\"connecting to transport\",\"name\":\"rabbitmq\",\"settings\":null}\r\n{\"timestamp\":\"2015-10-26T12:05:55.137703+0100\",\"level\":\"debug\",\"message\":\"subscribing to keepalives\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.137947+0100\",\"level\":\"debug\",\"message\":\"subscribing to results\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138325+0100\",\"level\":\"fatal\",\"message\":\"redis connection error\",\"error\":\"unable to connect to redis server\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138378+0100\",\"level\":\"warn\",\"message\":\"stopping\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138443+0100\",\"level\":\"warn\",\"message\":\"unsubscribing from keepalive and result queues\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138499+0100\",\"level\":\"debug\",\"message\":\"not currently the leader\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138541+0100\",\"level\":\"info\",\"message\":\"completing event handling in progress\",\"handling_event_count\":0}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138632+0100\",\"level\":\"error\",\"message\":\"[amqp] Detected TCP connection failure\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138690+0100\",\"level\":\"warn\",\"message\":\"reconnecting to transport\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138741+0100\",\"level\":\"warn\",\"message\":\"unsubscribing from keepalive and result queues\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.138781+0100\",\"level\":\"debug\",\"message\":\"not currently the leader\"}\r\n{\"timestamp\":\"2015-10-26T12:05:55.680002+0100\",\"level\":\"warn\",\"message\":\"stopping reactor\"}\r\nroot@sensu-server1:/etc/sensu $ echo $?\r\n0\r\n```\r\n\r\nThe daemon managing system (systemd in my case) doesn't know the service accidentally stopped.\r\n\r\nIs there a way that these services (sensu-server, sensu-api and sensu-client at least?) return a non-zero code if they really can't start?"}}