-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
units: do not soft-reboot before soft-reboot.target reached #32880
Conversation
….service The service deos not have DefaultDependencies=no. Hence it has dependencies of shutdown.target, and dependencies of soft-reboot.target are not necessary. Follow-up for f89985c.
Otherwise, at the time systemd-soft-reboot.service succeeds, services which has Conflicts= and Before=soft-reboot.target may not be stopped yet, and may be SIGKILLed. Especially, systemd-journald.service has the dependencies, thus journal may be corrupted. See systemd#32223. Follow-up for 13ffc60. Fixes systemd#32834.
This comment was marked as off-topic.
This comment was marked as off-topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like the right thing to do. We also order initrd-switch-root.service
after the target, as the operation must be performed after the synchronization point.
|
This seems wrong to me. Now systemd-soft-reboot.service is treated very differenty from the other kinds of reboot. This really should always be handled the same way. |
Also, this drops shutdown.target as a dep? that makes really not much sense to me at all, as it means shutdown.target is now very different for the different types of shutdown. |
No. |
-> #32895 |
Hmm? The ordering deps are moved to soft-reboot.target, no? |
Right. |
Otherwise, at the time systemd-soft-reboot.service succeeds,
services which has Conflicts= and Before=soft-reboot.target may
not be stopped yet, and may be SIGKILLed.
Especially, systemd-journald.service has the dependencies, thus
journal may be corrupted. See #32223.
Follow-up for 13ffc60.
Fixes #32834.