From: Laurent Bigonville <bigon@xxxxxxxx> Use Type=forking and pass PIDFile option, this allows better tracking of the livecycle of the daemon. Only attempt to start the daemon if selinux is enabled. Drop After=syslog.target, syslog is socket activated anyway --- policycoreutils/restorecond/restorecond.service | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/policycoreutils/restorecond/restorecond.service b/policycoreutils/restorecond/restorecond.service index 7d64cc5..0511a1c 100644 --- a/policycoreutils/restorecond/restorecond.service +++ b/policycoreutils/restorecond/restorecond.service @@ -1,12 +1,12 @@ [Unit] Description=Restorecon maintaining path file context -After=syslog.target ConditionPathExists=/etc/selinux/restorecond.conf +ConditionSecurity=selinux [Service] -Type=oneshot +Type=forking ExecStart=/usr/sbin/restorecond -RemainAfterExit=yes +PIDFile=/var/run/restorecond.pid [Install] WantedBy=multi-user.target -- 1.8.4.2 -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@xxxxxxxxxxxxx with the words "unsubscribe selinux" without quotes as the message.