selinux/policycoreutils/restorecond/restorecond.service
Laurent Bigonville 1524e15303 Improve restorecond systemd unit file
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
2013-11-06 09:36:28 -05:00

13 lines
263 B
Desktop File

[Unit]
Description=Restorecon maintaining path file context
ConditionPathExists=/etc/selinux/restorecond.conf
ConditionSecurity=selinux
[Service]
Type=forking
ExecStart=/usr/sbin/restorecond
PIDFile=/var/run/restorecond.pid
[Install]
WantedBy=multi-user.target