selinux/restorecond/restorecond.service
Nicolas Iooss 5fc701fe11
restorecond: use /run instead of /var/run
On most distributions, /var/run is a symbolic link to /run so using
/var/run or /run lead to the same result. Nevertheless systemd started
to warn about using /var/run in a service file, logging entries such as:

    /usr/lib/systemd/system/restorecond.service:8: PIDFile= references
    path below legacy directory /var/run/, updating
    /var/run/restorecond.pid → /run/restorecond.pid; please update the
    unit file accordingly.

Switch to /run in order to follow this advice.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
2019-03-18 22:07:08 +01:00

13 lines
259 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=/run/restorecond.pid
[Install]
WantedBy=multi-user.target