summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-04 20:28:08 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-04 20:32:42 +0100
commita87a38c20196a4aeb56b6ba71d688eefd0b21c30 (patch)
treef8ee2082f6b5a481ba1cdeacee51d03105b80c68 /units
parentff8d1aba5378949c352147cf348aaeafd7221716 (diff)
units: make systemd-journald.service Type=notify
It already calls sd_notify(), so it looks like an oversight. Without it, its ordering to systemd-journal-flush.service is non-deterministic and the SIGUSR1 from flushing may kill journald before it has its signal handlers set up. https://bugs.freedesktop.org/show_bug.cgi?id=85871 https://bugzilla.redhat.com/show_bug.cgi?id=1159641
Diffstat (limited to 'units')
-rw-r--r--units/systemd-journald.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in
index 7ee67fd000..8d380c84c9 100644
--- a/units/systemd-journald.service.in
+++ b/units/systemd-journald.service.in
@@ -14,6 +14,7 @@ After=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-a
Before=sysinit.target
[Service]
+Type=notify
Sockets=systemd-journald.socket systemd-journald-dev-log.socket systemd-journald-audit.socket
ExecStart=@rootlibexecdir@/systemd-journald
Restart=always