{"action":"opened","issue":{"url":"https://api.github.com/repos/habitat-sh/habitat/issues/5172","repository_url":"https://api.github.com/repos/habitat-sh/habitat","labels_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5172/labels{/name}","comments_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5172/comments","events_url":"https://api.github.com/repos/habitat-sh/habitat/issues/5172/events","html_url":"https://github.com/habitat-sh/habitat/issues/5172","id":330426489,"node_id":"MDU6SXNzdWUzMzA0MjY0ODk=","number":5172,"title":"`hab svc status <IDENT>` exit status is inconsistent","user":{"login":"baumanj","id":5906042,"node_id":"MDQ6VXNlcjU5MDYwNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5906042?v=4","gravatar_id":"","url":"https://api.github.com/users/baumanj","html_url":"https://github.com/baumanj","followers_url":"https://api.github.com/users/baumanj/followers","following_url":"https://api.github.com/users/baumanj/following{/other_user}","gists_url":"https://api.github.com/users/baumanj/gists{/gist_id}","starred_url":"https://api.github.com/users/baumanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baumanj/subscriptions","organizations_url":"https://api.github.com/users/baumanj/orgs","repos_url":"https://api.github.com/users/baumanj/repos","events_url":"https://api.github.com/users/baumanj/events{/privacy}","received_events_url":"https://api.github.com/users/baumanj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"baumanj","id":5906042,"node_id":"MDQ6VXNlcjU5MDYwNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5906042?v=4","gravatar_id":"","url":"https://api.github.com/users/baumanj","html_url":"https://github.com/baumanj","followers_url":"https://api.github.com/users/baumanj/followers","following_url":"https://api.github.com/users/baumanj/following{/other_user}","gists_url":"https://api.github.com/users/baumanj/gists{/gist_id}","starred_url":"https://api.github.com/users/baumanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baumanj/subscriptions","organizations_url":"https://api.github.com/users/baumanj/orgs","repos_url":"https://api.github.com/users/baumanj/repos","events_url":"https://api.github.com/users/baumanj/events{/privacy}","received_events_url":"https://api.github.com/users/baumanj/received_events","type":"User","site_admin":false},"assignees":[{"login":"baumanj","id":5906042,"node_id":"MDQ6VXNlcjU5MDYwNDI=","avatar_url":"https://avatars2.githubusercontent.com/u/5906042?v=4","gravatar_id":"","url":"https://api.github.com/users/baumanj","html_url":"https://github.com/baumanj","followers_url":"https://api.github.com/users/baumanj/followers","following_url":"https://api.github.com/users/baumanj/following{/other_user}","gists_url":"https://api.github.com/users/baumanj/gists{/gist_id}","starred_url":"https://api.github.com/users/baumanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baumanj/subscriptions","organizations_url":"https://api.github.com/users/baumanj/orgs","repos_url":"https://api.github.com/users/baumanj/repos","events_url":"https://api.github.com/users/baumanj/events{/privacy}","received_events_url":"https://api.github.com/users/baumanj/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-07T20:37:04Z","updated_at":"2018-06-07T20:37:04Z","closed_at":null,"author_association":"MEMBER","body":"Note that `hab svc status` and `hab sup status` are aliases\n\nIf no services are loaded:\n```\n[74][default:/src:0]# hab svc status\nNo services loaded.\n```\nThen a query for a particular service's status returns 0 (success) even if it's not present:\n```\n[75][default:/src:0]# hab svc status habitat/builder-datastore\nNo services loaded.\n[76][default:/src:0]# hab svc status habitat/builder-api\nNo services loaded.\n[77][default:/src:0]#\n#                 ^ exit status\n```\nBut as soon as there's *something* loaded, querying for a non-loaded service, give an non-zero exit:\n```\n[77][default:/src:0]# hab svc load habitat/builder-datastore\nThe habitat/builder-datastore service was successfully loaded\n[78][default:/src:0]# hab svc status habitat/builder-datastore\npackage                                        type        state  uptime (s)  pid    group\nhabitat/builder-datastore/7043/20180208190943  standalone  1      4           99047  builder-datastore.defaultdefault\n[79][default:/src:0]# hab svc status habitat/builder-api\n✗✗✗\n✗✗✗ [Err: 2] habitat/builder-api not loaded.\n✗✗✗\n[80][default:/src:1]#\n``` \n\nThe expected behavior is that if a service is not loaded, `hab svc status <IDENT>` will always have a non-zero exit status.\n\nI believe this is as of the 0.56.0 supervisor."}}
{"actor":{"display_login":"baumanj"}}