{"action":"created","issue":{"url":"https://api.github.com/repos/papertrail/remote_syslog2/issues/111","labels_url":"https://api.github.com/repos/papertrail/remote_syslog2/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/papertrail/remote_syslog2/issues/111/comments","events_url":"https://api.github.com/repos/papertrail/remote_syslog2/issues/111/events","html_url":"https://github.com/papertrail/remote_syslog2/issues/111","id":121100504,"number":111,"title":"service remote_syslog status returns 0 when service is _not_ running","user":{"login":"benneumob","id":13318534,"avatar_url":"https://avatars.githubusercontent.com/u/13318534?v=3","gravatar_id":"","url":"https://api.github.com/users/benneumob","html_url":"https://github.com/benneumob","followers_url":"https://api.github.com/users/benneumob/followers","following_url":"https://api.github.com/users/benneumob/following{/other_user}","gists_url":"https://api.github.com/users/benneumob/gists{/gist_id}","starred_url":"https://api.github.com/users/benneumob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benneumob/subscriptions","organizations_url":"https://api.github.com/users/benneumob/orgs","repos_url":"https://api.github.com/users/benneumob/repos","events_url":"https://api.github.com/users/benneumob/events{/privacy}","received_events_url":"https://api.github.com/users/benneumob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-08T21:14:27Z","updated_at":"2015-12-08T21:30:53Z","closed_at":null,"body":"This causes Chef to have an issue with starting the service (assuming you tell Chef that `status` is supported that is)."},"comment":{"url":"https://api.github.com/repos/papertrail/remote_syslog2/issues/comments/163023535","html_url":"https://github.com/papertrail/remote_syslog2/issues/111#issuecomment-163023535","issue_url":"https://api.github.com/repos/papertrail/remote_syslog2/issues/111","id":163023535,"user":{"login":"benneumob","id":13318534,"avatar_url":"https://avatars.githubusercontent.com/u/13318534?v=3","gravatar_id":"","url":"https://api.github.com/users/benneumob","html_url":"https://github.com/benneumob","followers_url":"https://api.github.com/users/benneumob/followers","following_url":"https://api.github.com/users/benneumob/following{/other_user}","gists_url":"https://api.github.com/users/benneumob/gists{/gist_id}","starred_url":"https://api.github.com/users/benneumob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benneumob/subscriptions","organizations_url":"https://api.github.com/users/benneumob/orgs","repos_url":"https://api.github.com/users/benneumob/repos","events_url":"https://api.github.com/users/benneumob/events{/privacy}","received_events_url":"https://api.github.com/users/benneumob/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T21:30:53Z","updated_at":"2015-12-08T21:30:53Z","body":"I'll submit a pull request later, but for me the fix is:\r\n\r\nstatus(){\r\n  if (is_running); then\r\n    echo \"Running\"\r\n    RETVAL=0\r\n  else\r\n    echo \"Not running\"\r\n    RETVAL=1\r\n  fi\r\n}"}}