add -f parameter to check "failed" status#50
Open
kjetilho wants to merge 1 commit intojonschipp:masterfrom
Open
add -f parameter to check "failed" status#50kjetilho wants to merge 1 commit intojonschipp:masterfrom
kjetilho wants to merge 1 commit intojonschipp:masterfrom
Conversation
In systemd, a service can be successful, even though it is not currently running. E.g., if it is triggered by a timer or socket activation. This patch adds a new switch `-f` which uses `systemctl is-failed` instead of the status verb. It will return OK if it is **not** failed, regardless of other status (waiting, running). I don't think other supervisors have this concept, so I did not bother to try to make it more general in this version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In systemd, a service can be successful, even though it is not currently running. E.g., if it is triggered by a timer or socket activation.
This patch adds a new switch
-fwhich usessystemctl is-failedinstead of the status verb. It will return OK if it is not failed, regardless of other status (waiting, running). I don't think other supervisors have this concept, so I did not bother to try to make it more general in this version.(Some whitespace fixes snuck in as well. Let me know if you want them separately and I'll redo the patch.)