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

add -f parameter to check "failed" status #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kjetilho
Copy link

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.

(Some whitespace fixes snuck in as well. Let me know if you want them separately and I'll redo the patch.)

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.
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

Successfully merging this pull request may close these issues.

1 participant