-
Notifications
You must be signed in to change notification settings - Fork 6
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
corridor-init-forwarding not idempotent #13
Comments
Added |
This is better. Not idempotent, though. Perhaps good enough. When manually running corridor-stop-forwarding, next time systemd will register an unsuccessful stop.
I mean this line: Stopping init forwarding.
So far so good. Now lets manually start init forwarding.
Next time we try to start init forwarding from systemd it will fail.
And then it is impossible to recover from this by systemd stop / start / restart.
Not sure if this is an issue, if that would happen with other systemd daemons / manual interaction also. |
Hmm, yes. I even have a commit that makes -stop idempotent, but it takes 15-20 lines to do it right. I'm on the fence whether this is too much for such a corner case; e.g. it seems fairly intuitive that the problem described can be fixed by running the inverse action in the same way as the original action (either manually or via systemctl). |
corridor-init-forwarding is currently not idempotent. Re-running corridor-init-forwarding will fail. This is problematic, because then the systemd service cannot be successfully restarted.
Could you make corridor-init-forwarding idempotent please? (That would help with Debian packaging. #10)
The text was updated successfully, but these errors were encountered: