mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-11 16:09:47 +00:00
5fc701fe11
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>
13 lines
259 B
Desktop File
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
|