summarylogtreecommitdiffstats
path: root/coredns.service
diff options
context:
space:
mode:
authorskydrome2019-08-14 04:31:51 -0400
committerskydrome2019-08-14 04:31:51 -0400
commite470a883dd27541872ca896b77c95b835904b59f (patch)
tree9b73a0957f800913ddc68b107f010dcbf5d1fe27 /coredns.service
downloadaur-coredns-git.tar.gz
coredns-git
Diffstat (limited to 'coredns.service')
-rw-r--r--coredns.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/coredns.service b/coredns.service
new file mode 100644
index 000000000000..91b04dc715a5
--- /dev/null
+++ b/coredns.service
@@ -0,0 +1,20 @@
+[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/bin/coredns -conf=/etc/coredns/corefile
+ExecReload=/bin/kill -SIGUSR1 $MAINPID
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target