mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
unit: also stop systemd-journal-flush.service on soft-reboot
After soft-reboot, /var/log/journal may be initially read-only, and becomes writable a bit later. In such case, runtime journal is initially opened by journald. Hence, we need to flush to /var when it is ready.
This commit is contained in:
parent
3148edb254
commit
7ae27cefd7
@ -20,6 +20,9 @@ Wants=systemd-journald.service
|
||||
After=systemd-journald.service
|
||||
RequiresMountsFor=/var/log/journal
|
||||
|
||||
Before=soft-reboot.target systemd-soft-reboot.service
|
||||
Conflicts=soft-reboot.target
|
||||
|
||||
[Service]
|
||||
ExecStart=journalctl --flush
|
||||
ExecStop=journalctl --smart-relinquish-var
|
||||
|
Loading…
Reference in New Issue
Block a user