1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

units: add IgnoreOnIsolate=yes to systemd-journald too

We already had it on the socket units, so it's possible that
systemd-journald.service would be stopped and then restarted when trafic hits
the sockets when something logs. Let's not try to stop it. It is supposed to
run until the end and be eventually killed in the final killing spree.

This might (or not) help with #23287.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-06-29 13:14:37 +02:00 committed by Yu Watanabe
parent 3bdb60055e
commit 74c4bd6b1a
3 changed files with 11 additions and 6 deletions

View File

@ -13,9 +13,9 @@ Documentation=man:systemd-journald.service(8) man:journald.conf(5)
DefaultDependencies=no
Before=sockets.target
# Mount and swap units need this. If this socket unit is removed by an
# isolate request the mount and swap units would be removed too,
# hence let's exclude this from isolate requests.
# Mount and swap units need this. If this socket unit is removed by an isolate
# request the mount and swap units would be removed too, hence let's exclude
# systemd-journald and its sockets from isolate requests.
IgnoreOnIsolate=yes
[Socket]

View File

@ -15,6 +15,11 @@ Requires=systemd-journald.socket
After=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket syslog.socket
Before=sysinit.target
# Mount and swap units need the journal socket units. If they were removed by
# an isolate request the mount and swap units would be removed too, hence let's
# exclude systemd-journald and its sockets from isolate requests.
IgnoreOnIsolate=yes
[Service]
DeviceAllow=char-* rw
ExecStart={{ROOTLIBEXECDIR}}/systemd-journald

View File

@ -13,9 +13,9 @@ Documentation=man:systemd-journald.service(8) man:journald.conf(5)
DefaultDependencies=no
Before=sockets.target
# Mount and swap units need this. If this socket unit is removed by an
# isolate request the mount and swap units would be removed too,
# hence let's exclude this from isolate requests.
# Mount and swap units need this. If this socket unit is removed by an isolate
# request the mount and swap units would be removed too, hence let's exclude
# systemd-journald and its sockets from isolate requests.
IgnoreOnIsolate=yes
[Socket]