-
Notifications
You must be signed in to change notification settings - Fork 188
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
verdi daemon status
should return non-zero exit code, if daemon is not running
#3728
Comments
In the spirit of exit codes, isn't it already doing the correct thing? |
I also wondered about this when I made the change, but I think what I'm suggesting here is actually the default behavior on unix systems. E.g. for systemd services, calling In practical terms, I also think this makes the exit code more useful. |
Just checked the same for postgresql:
Found this guide on exit code numbers, and I think it should not be 1, though: http://www.tldp.org/LDP/abs/html/exitcodes.html |
Right, also for systemd it was 3. |
Yeah, that might've just been systemd's choice for |
That convention doesn't appear too strong though, with a tiny bit of poking around I haven't managed to get anything but 1 exit codes from the GNU coreutils 😄 |
Ha, I'm convinced. I do agree it would be more useful, assuming it's well doc'd. There's a need to differentiate what happens if |
currently, it always returns exit code 0.
The text was updated successfully, but these errors were encountered: