]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: we need systemd-journald.service from systemd-journal-flush.service
authorLennart Poettering <lennart@poettering.net>
Tue, 1 Feb 2022 17:11:04 +0000 (18:11 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Feb 2022 20:09:39 +0000 (05:09 +0900)
This is a follow-up for d5ee050ffc9d413253932d9340ade8c8fb111092, and
reintroduces a requirement dep from systemd-journal-flush.service onto
systemd-journald.service, but a weaker one than originally: a Wants= one
instead of a Requires= one.

Why? Simply because the service issues an IPC call to the journald,
hence it should pull it in. (Note that socket activation doesn't happen
for the Varlink socket it uses, hence we should pull in the service
itself.)

units/systemd-journal-flush.service

index 6efb8734a77cf9bdb435638a1da1c2925c005931..5d0b811ae394bc68b1d99a325739169b897324f9 100644 (file)
@@ -11,6 +11,7 @@
 Description=Flush Journal to Persistent Storage
 Documentation=man:systemd-journald.service(8) man:journald.conf(5)
 DefaultDependencies=no
+Wants=systemd-journald.service
 After=systemd-journald.service systemd-remount-fs.service
 Before=systemd-tmpfiles-setup.service
 RequiresMountsFor=/var/log/journal