Zbigniew Jędrzejewski-Szmek ea1976
From 5793666dcea38a768af843c6dcd60029a8c43026 Mon Sep 17 00:00:00 2001
Michal Schmidt ba201c
From: Michal Schmidt <mschmidt@redhat.com>
Michal Schmidt ba201c
Date: Tue, 4 Nov 2014 20:28:08 +0100
Michal Schmidt ba201c
Subject: [PATCH] units: make systemd-journald.service Type=notify
Michal Schmidt ba201c
Michal Schmidt ba201c
It already calls sd_notify(), so it looks like an oversight.
Michal Schmidt ba201c
Michal Schmidt ba201c
Without it, its ordering to systemd-journal-flush.service is
Michal Schmidt ba201c
non-deterministic and the SIGUSR1 from flushing may kill journald before
Michal Schmidt ba201c
it has its signal handlers set up.
Michal Schmidt ba201c
Michal Schmidt ba201c
https://bugs.freedesktop.org/show_bug.cgi?id=85871
Michal Schmidt ba201c
https://bugzilla.redhat.com/show_bug.cgi?id=1159641
Zbigniew Jędrzejewski-Szmek ea1976
(cherry picked from commit a87a38c20196a4aeb56b6ba71d688eefd0b21c30)
Michal Schmidt ba201c
Zbigniew Jędrzejewski-Szmek ea1976
Conflicts:
Zbigniew Jędrzejewski-Szmek ea1976
	units/systemd-journald.service.in
Michal Schmidt ba201c
---
Michal Schmidt ba201c
 units/systemd-journald.service.in | 1 +
Michal Schmidt ba201c
 1 file changed, 1 insertion(+)
Michal Schmidt ba201c
Michal Schmidt ba201c
diff --git a/units/systemd-journald.service.in b/units/systemd-journald.service.in
Zbigniew Jędrzejewski-Szmek ea1976
index 4de38fad59..441d5b1f96 100644
Michal Schmidt ba201c
--- a/units/systemd-journald.service.in
Michal Schmidt ba201c
+++ b/units/systemd-journald.service.in
Michal Schmidt ba201c
@@ -14,6 +14,7 @@ After=systemd-journald.socket systemd-journald-dev-log.socket syslog.socket
Michal Schmidt ba201c
 Before=sysinit.target
Michal Schmidt ba201c
 
Michal Schmidt ba201c
 [Service]
Michal Schmidt ba201c
+Type=notify
Michal Schmidt ba201c
 Sockets=systemd-journald.socket systemd-journald-dev-log.socket
Michal Schmidt ba201c
 ExecStart=@rootlibexecdir@/systemd-journald
Michal Schmidt ba201c
 Restart=always