units/systemd-{udevd,journald}*.socket: enable DeferTrigger=

Refer to d766c75acd for the rationale
behind the udevd change.

systemd-journald.service conflicts with soft-reboot.target,
so make sure anything surviving soft-reboot and trying
to log to journal doesn't fail the socket units.
This commit is contained in:
Mike Yuan
2025-05-18 02:24:38 +02:00
parent 1b4ab5a209
commit a2b34106e7
6 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ Service=systemd-journald.service
ReceiveBuffer=128M
ListenNetlink=audit 1
PassCredentials=yes
DeferTrigger=yes
[Install]
WantedBy=sockets.target

View File

@@ -26,6 +26,7 @@ Service=systemd-journald.service
SocketMode=0666
Symlinks=/dev/log
Timestamping=us
DeferTrigger=yes
# Increase both the send and receive buffer, so that things don't
# block early. Note that journald internally uses the this socket both

View File

@@ -27,3 +27,4 @@ ReceiveBuffer=8M
Service=systemd-journald.service
SocketMode=0666
Timestamping=us
DeferTrigger=yes

View File

@@ -20,3 +20,4 @@ ListenSequentialPacket=/run/udev/control
SocketMode=0600
PassCredentials=yes
RemoveOnStop=yes
DeferTrigger=yes

View File

@@ -24,3 +24,4 @@ Service=systemd-udevd.service
ReceiveBuffer=128M
ListenNetlink=kobject-uevent 1
PassCredentials=yes
DeferTrigger=yes

View File

@@ -20,3 +20,4 @@ ListenStream=/run/udev/io.systemd.Udev
FileDescriptorName=varlink
SocketMode=0600
RemoveOnStop=yes
DeferTrigger=yes