summarylogtreecommitdiffstats
path: root/atomdns.service
blob: bbd6a9ec3fb207f9befe70d501e88f8c5a1da4d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=Atom DNS server
Documentation=https://github.com/Xuanwo/atomdns
After=network.target

[Service]
PermissionsStartOnly=true
LimitNOFILE=1048576
LimitNPROC=512
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
User=atomdns
WorkingDirectory=~
ExecStart=/usr/bin/atomdns /etc/atomdns/atomdns.hcl
ExecReload=/bin/kill -SIGUSR1 $MAINPID
Restart=on-failure

[Install]
WantedBy=multi-user.target