mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-14 01:54:42 +00:00
1524e15303
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
13 lines
263 B
Desktop File
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
|