File pihole-ftl.service of Package pihole-ftl
22
1
[Unit]
2
Description=Pi-hole FTLDNS engine
3
After=network.target
4
5
[Service]
6
User=pihole
7
Group=pihole
8
PIDFile=/run/pihole/FTL.pid
9
#ExecStartPre=/bin/chown -R pihole:pihole /etc/pihole
10
# FTL does not clean up SHM files by default for some reason.
11
ExecStartPre=/usr/bin/rm -f /dev/shm/FTL-*
12
ExecStart=/usr/bin/pihole-FTL no-daemon
13
ExecReload=/bin/kill -USR1 $MAINPID
14
Restart=on-failure
15
TimeoutStopSec=5s
16
PermissionsStartOnly=true
17
#AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW CAP_NET_ADMIN
18
19
[Install]
20
WantedBy=multi-user.target
21
Alias=pi-hole-ftl.service
22
Alias=pihole-FTL.service