-
Notifications
You must be signed in to change notification settings - Fork 6
/
donutdns.service
35 lines (30 loc) · 986 Bytes
/
donutdns.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This is an example systemd service file for running donutdns.
#
# It assumes the donutdns executable exists at /opt/bin/donutdns
#
# To use this service file:
# - Copy to /etc/systemd/system/donutdns.service
# - Run: sudo systemctl daemon-reload
# - Run: sudo systemctl enable donutdns.service
# - Run: systemctl start donutdns
#
# Check the status of the donutdns systemd service with
# - systemctl status donutdns
#
# If you have large block-lists you may need to tweak MemoryMax.
# If donutdns is being used at scale you may want to set CPUWeight
# to something higher than 100 (the default for systemd services).
#
# Environment variables can be configured as normal for systemd units.
[Unit]
Description=Block ads, trackers, and malicioius sites using DonutDNS.
[Service]
Type=simple
ExecStart=/opt/bin/donutdns
MemoryMax=42M
CPUWeight=90
Environment=DONUT_DNS_PORT=53
Environment=DONUT_DNS_ALLOW=
Environment=DONUT_DNS_BLOCK=
[Install]
WantedBy=multi-user.target