2017-04-24 17:06:56 +02:00
|
|
|
[Unit]
|
|
|
|
Description=CoreDNS DNS server
|
|
|
|
Documentation=https://coredns.io
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
PermissionsStartOnly=true
|
2017-11-11 15:57:29 +01:00
|
|
|
LimitNOFILE=1048576
|
|
|
|
LimitNPROC=512
|
2018-04-06 12:26:50 +02:00
|
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
NoNewPrivileges=true
|
2017-04-24 17:06:56 +02:00
|
|
|
User=coredns
|
2023-08-11 20:14:06 +02:00
|
|
|
WorkingDirectory=/var/lib/coredns
|
2017-11-11 15:57:29 +01:00
|
|
|
ExecStart=/usr/bin/coredns -conf=/etc/coredns/Corefile
|
2017-04-24 17:06:56 +02:00
|
|
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
|
|
|
Restart=on-failure
|
2023-08-11 20:14:06 +02:00
|
|
|
StandardOutput=append:/var/log/coredns.log
|
|
|
|
StandardError=append:/var/log/coredns.err.log
|
|
|
|
|
2017-04-24 17:06:56 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|