21 lines
462 B
Plaintext
21 lines
462 B
Plaintext
![]() |
[Unit]
|
||
|
Description=CoreDNS DNS server
|
||
|
Documentation=https://coredns.io
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
PermissionsStartOnly=true
|
||
|
LimitNOFILE=1048576
|
||
|
LimitNPROC=512
|
||
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||
|
NoNewPrivileges=true
|
||
|
User=coredns
|
||
|
WorkingDirectory=~
|
||
|
ExecStart=/usr/local/bin/coredns -conf={{taskserv.etc_corefile}}
|
||
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|