SHA256
1
0
forked from pool/systemd
systemd/0009-units-make-systemd-journald.service-Type-notify.patch

28 lines
933 B
Diff
Raw Normal View History

Based on a87a38c20196a4aeb56b6ba71d688eefd0b21c30 Mon Sep 17 00:00:00 2001
From: Michal Schmidt <mschmidt@redhat.com>
Date: Tue, 4 Nov 2014 20:28:08 +0100
Subject: [PATCH] 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
---
units/systemd-journald.service.in | 1 +
1 file changed, 1 insertion(+)
--- units/systemd-journald.service.in
+++ units/systemd-journald.service.in 2014-11-10 12:22:08.461949786 +0000
@@ -14,6 +14,7 @@ After=systemd-journald.socket syslog.soc
Before=sysinit.target
[Service]
+Type=notify
ExecStart=@rootlibexecdir@/systemd-journald
Restart=always
RestartSec=0