diff --git a/policycoreutils/restorecond/restorecond.service b/policycoreutils/restorecond/restorecond.service index 7d64cc5a..0511a1c7 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