mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
units: stop systemd-journald before systemd-soft-reboot.service
Typically, soft-reboot.target is never reached. So, without this change, systemd-journald may be killed by PID1 on soft-reboot, and may cause journal corruption.
This commit is contained in:
parent
a328b24edd
commit
37143fdf5a
@ -17,7 +17,10 @@ Before=sysinit.target
|
|||||||
|
|
||||||
# To avoid journald SIGKILLed during soft-reboot and corrupting journals.
|
# To avoid journald SIGKILLed during soft-reboot and corrupting journals.
|
||||||
# See https://github.com/systemd/systemd/issues/30195
|
# See https://github.com/systemd/systemd/issues/30195
|
||||||
Before=soft-reboot.target
|
# Note, typically soft-reboot.target will be never reached,
|
||||||
|
# and systemd-soft-reboot.service will trigger soft-reboot.
|
||||||
|
# Hence, this must be stopped before systemd-soft-reboot.service.
|
||||||
|
Before=soft-reboot.target systemd-soft-reboot.service
|
||||||
Conflicts=soft-reboot.target
|
Conflicts=soft-reboot.target
|
||||||
|
|
||||||
# Mount and swap units need the journal socket units. If they were removed by
|
# Mount and swap units need the journal socket units. If they were removed by
|
||||||
|
Loading…
Reference in New Issue
Block a user