]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: turn on timestamping for journald sockets 17455/head
authorLennart Poettering <lennart@poettering.net>
Mon, 26 Oct 2020 16:41:06 +0000 (17:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Oct 2020 13:13:03 +0000 (14:13 +0100)
To make things simple and robust when debugging journald, we'll leave
the SO_TIMESTAMP invocations in the C code in place, even if they are
now typically redundant, given that the sockets are already passed into
the process with SO_TIMESTAMP turned on now.

units/systemd-journald-dev-log.socket
units/systemd-journald.socket

index 80ad6ac845f473efcd3ef0f712ab0c0d330f1f57..7cec55440dfcccc38ea2c85bb4ec516c0f7aeb29 100644 (file)
@@ -19,12 +19,13 @@ Before=sockets.target
 IgnoreOnIsolate=yes
 
 [Socket]
-Service=systemd-journald.service
 ListenDatagram=/run/systemd/journal/dev-log
-Symlinks=/dev/log
-SocketMode=0666
 PassCredentials=yes
 PassSecurity=yes
+Service=systemd-journald.service
+SocketMode=0666
+Symlinks=/dev/log
+Timestamping=us
 
 # Increase both the send and receive buffer, so that things don't
 # block early. Note that journald internally uses the this socket both
index c95ae5ab64b8f1bbf8985ae2986d4cf0c87d26e7..95d5f21964ac74ee809c05d51b946d6b073cd82c 100644 (file)
@@ -19,10 +19,11 @@ Before=sockets.target
 IgnoreOnIsolate=yes
 
 [Socket]
-ListenStream=/run/systemd/journal/stdout
 ListenDatagram=/run/systemd/journal/socket
-SocketMode=0666
+ListenStream=/run/systemd/journal/stdout
 PassCredentials=yes
 PassSecurity=yes
 ReceiveBuffer=8M
 Service=systemd-journald.service
+SocketMode=0666
+Timestamping=us