summarylogtreecommitdiffstats
path: root/mosdns.service
blob: f31b45c756438d419e3a8d668f2a9808963b98a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[Unit]
Description=mosdns DNS forwarder
After=network.target

[Service]
Type=exec
ExecStart=/usr/bin/mosdns start -c /etc/mosdns/config.yaml -d /etc/mosdns
Restart=on-abnormal
User=mosdns
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
NoNewPrivileges=true

[Install]
WantedBy=multi-user.target