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
SuccessExitStatus= confusingly does not affect the symbolic name mapping of exit statuses in "systemctl status" output #15757
Comments
Hmm, actually, even if you start with the service having |
Ah, this is a misunderstanding. The "1/FAILURE" display just shows the numeric code and the textual name of it, i.e. using the table "systemd-analyze exit-status" shows you. SuccessExitStatus= does not affect that textual mapping, it only controls what happens as result of a such an exit status. I'll prep a PR that tries to clear this up a bit. |
…ExitStatus= Fixes: systemd#15757 (Note there's quite some confusion regarding "exit status" vs. "exit code" in the docs here. We should clean this up fully one day. This change tries to fix some occasions of the wrong use, but not all.)
documentation fix waiting in #15776 |
…ExitStatus= Fixes: #15757 (Note there's quite some confusion regarding "exit status" vs. "exit code" in the docs here. We should clean this up fully one day. This change tries to fix some occasions of the wrong use, but not all.)
…ExitStatus= Fixes: systemd#15757 (Note there's quite some confusion regarding "exit status" vs. "exit code" in the docs here. We should clean this up fully one day. This change tries to fix some occasions of the wrong use, but not all.) (cherry picked from commit 1e0d5ee)
systemd version the issue has been seen with
Used distribution
Expected behaviour you didn't see
Unexpected behaviour you saw
Steps to reproduce the problem
If I create a timer, which runs a oneshot service, and ExecStart returns 1, I expect it to fail, which it does:
The problem is that, if I fix the service unit to have SuccessExitStatus=1, and reload, subsequent runs of the service show it as partially failing; the unit is correctly marked as 'inactive (dead)', but MainPID reports '(code=exited, status=1/FAILURE)'.
The text was updated successfully, but these errors were encountered: