# You should manage this file with systemctl edit utility and not manually

[Unit]
Description=File Access Policy Daemon
DefaultDependencies=no
# If rules need user/group lookup, create a drop-in to delay the startup after NSS lookup is available:
#   # mkdir -p /etc/systemd/system/fapolicyd.service.d
#   # echo -e "[Unit]\nAfter=nss-user-lookup.target local-fs.target systemd-tmpfiles-setup.service" > /etc/systemd/system/fapolicyd.service.d/nss-lookup.conf
#   # systemctl daemon-reload
After=local-fs.target systemd-tmpfiles-setup.service
Documentation=man:fapolicyd(8)

[Service]
OOMScoreAdjust=-1000
Type=@FAPOLICYD_SERVICE_TYPE@
@FAPOLICYD_SERVICE_NOTIFY_ACCESS@
RuntimeDirectory=fapolicyd
@FAPOLICYD_SERVICE_PIDFILE@
ExecStartPre=/usr/sbin/fagenrules
ExecStart=@FAPOLICYD_SERVICE_EXEC@
@FAPOLICYD_SERVICE_WATCHDOG@
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target
