summarylogtreecommitdiffstats
path: root/crab-hole.service
blob: e56e3f0d5e9608e38e2093a103356c6f5a078b2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[Unit]
Description=crab-hole server
Wants=network-online.target
After=network-online.target

[Service]
User=crab-hole
DynamicUser=yes
CacheDirectory=crab-hole
Environment="XDG_CACHE_HOME=/var/cache"
ExecStart=/usr/bin/crab-hole
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
Restart=on-failure
RestartSec=1

[Install]
WantedBy=multi-user.target