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