mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-03-14 14:16:16 +01:00
18 lines
409 B
SYSTEMD
18 lines
409 B
SYSTEMD
|
[Unit]
|
||
|
Description=CoreDNS DNS server
|
||
|
Documentation=https://coredns.io
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
PermissionsStartOnly=true
|
||
|
LimitNOFILE=8192
|
||
|
User=coredns
|
||
|
WorkingDirectory=/home/coredns
|
||
|
ExecStartPre=/sbin/setcap cap_net_bind_service=+ep /opt/bin/coredns
|
||
|
ExecStart=/opt/bin/coredns -conf=/etc/coredns/Corefile
|
||
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
||
|
Restart=on-failure
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|