-
Notifications
You must be signed in to change notification settings - Fork 24
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
Graceful recover after a failure #707
Comments
A quick & dirty way to avoid that is issue is to always call |
travier
added a commit
to travier/bootupd
that referenced
this issue
Sep 2, 2024
If for whatever reason a bootupd command fails, it will leave the systemd service unit in a failed state and systemd will then refuse to run a unit under the same name with `systemd-run` again until the failure is cleared. Thus systematically call `systemctl reset-failed` before calling `systemd-run` to clear any potential failures from previous calls. See: coreos#707
travier
added a commit
to travier/bootupd
that referenced
this issue
Sep 2, 2024
If for whatever reason a bootupd command fails, it will leave the systemd service unit in a failed state and systemd will then refuse to run a unit under the same name with `systemd-run` again until the failure is cleared. Thus systematically call `systemctl reset-failed` before calling `systemd-run` to clear any potential failures from previous calls. See: coreos#707 See: coreos#663
travier
added a commit
to travier/bootupd
that referenced
this issue
Sep 2, 2024
If for whatever reason a bootupd command fails, it will leave the systemd service unit in a failed state and systemd will then refuse to run a unit under the same name with `systemd-run` again until the failure is cleared. Thus systematically call `systemctl reset-failed` before calling `systemd-run` to clear any potential failures from previous calls. See: coreos#707 See: coreos#663
travier
added a commit
to travier/bootupd
that referenced
this issue
Sep 2, 2024
If for whatever reason a bootupd command fails, it will leave the systemd service unit in a failed state and systemd will then refuse to run a unit under the same name with `systemd-run` again until the failure is cleared. Thus systematically call `systemctl reset-failed` before calling `systemd-run` to clear any potential failures from previous calls. Do not check the return code of the systemctl command on purpose as it may fail if the unit does not exists yet, i.e. if no bootupctl command has been run yet. Also ignore stdout/stderr to avoid showing unexpected errors messages to users. See: coreos#707 See: coreos#663
Close as fixed by #715 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From #694 (comment):
If for whatever reason the previous command fails, then I need to
systemctl reset-failed
before calling bootupd again.The text was updated successfully, but these errors were encountered: