Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

status ecs returns 0 when service is not running #93

Closed
thesmith opened this issue May 19, 2017 · 1 comment
Closed

status ecs returns 0 when service is not running #93

thesmith opened this issue May 19, 2017 · 1 comment

Comments

@thesmith
Copy link

I guess it should be returning a 3, but it returns a 0:

status ecs
ecs stop/waiting
echo $?
0

http://www.tldp.org/LDP/abs/html/exit-status.html

@jhaynes
Copy link
Contributor

jhaynes commented May 24, 2017

Hi @thesmith,

This behavior is related to the init system, upstart, rather than ECS directly. Other upstart managed services behave similarly. The 0 exit code can be viewed as a successfully run status command rather than information about the service. Instead, that information is contained in the string stop/waiting.

If you have other questions, feel free to re-open this issue or create a new one.

@jhaynes jhaynes closed this as completed May 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants