File pihole-ftl.service of Package pi-hole-ftl

[Unit]
Description=Pi-hole FTLDNS engine
After=network.target time-sync.target

[Service]
User=pihole
Group=pihole
PIDFile=/run/pihole-FTL.pid
ExecStartPre=/bin/touch /run/pihole-FTL.pid
ExecStartPre=/bin/chmod u=rwX,go=rX /run/pihole-FTL.pid
ExecStartPre=/bin/chown -R pihole:www /var/log/pihole /run/pihole-FTL.pid /etc/pihole
ExecStartPre=-/bin/chown root:root /etc/pihole/logrotate
ExecStartPre=-/bin/sh -c '/usr/bin/rm -f /dev/shm/FTL-*'
ExecStart=/usr/bin/pihole-FTL no-daemon
ExecReload=/bin/kill -USR1 $MAINPID
Restart=on-failure
TimeoutStopSec=5s
PermissionsStartOnly=true
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_NET_ADMIN CAP_SYS_NICE CAP_IPC_LOCK CAP_CHOWN
     
[Install]
WantedBy=multi-user.target
openSUSE Build Service is sponsored by