Blame SOURCES/0012-Fix-handling-of-Forking-daemon-to-allow-systemd-to-h.patch

f0c25a
From 7ea191268262d8c45ed152120a1d9da49fcac21e Mon Sep 17 00:00:00 2001
f0c25a
From: Petr Lautrbach <plautrba@redhat.com>
f0c25a
Date: Tue, 7 Jul 2015 16:14:52 +0200
f0c25a
Subject: [PATCH] Fix handling of Forking daemon, to allow systemd to handle it
f0c25a
 better
f0c25a
f0c25a
Charry picked from github fedora-selinux/selinux.git
f0c25a
7a8dd47ed587341db71dfac06fccfeabc299183e
f0c25a
f0c25a
Resolves: rhbz#1186648
f0c25a
---
f0c25a
 restorecond/restorecond.service | 7 +++----
f0c25a
 1 file changed, 3 insertions(+), 4 deletions(-)
f0c25a
f0c25a
diff --git a/restorecond/restorecond.service b/restorecond/restorecond.service
f0c25a
index f560b05..460a49f 100644
f0c25a
--- a/restorecond/restorecond.service
f0c25a
+++ b/restorecond/restorecond.service
f0c25a
@@ -4,10 +4,9 @@ After=syslog.target
f0c25a
 ConditionPathExists=/etc/selinux/restorecond.conf
f0c25a
 
f0c25a
 [Service]
f0c25a
-Environment=LANG=C
f0c25a
-
f0c25a
-ExecStart=/usr/sbin/restorecond -d
f0c25a
-ExecStop=/bin/kill -WINCH ${MAINPID}
f0c25a
+Type=forking
f0c25a
+ExecStart=/usr/sbin/restorecond
f0c25a
+PIDFile=/var/run/restorecond.pid
f0c25a
 
f0c25a
 [Install]
f0c25a
 WantedBy=multi-user.target
f0c25a
-- 
f0c25a
2.4.3
f0c25a