diff options
author | skydrome | 2019-08-14 04:31:51 -0400 |
---|---|---|
committer | skydrome | 2019-08-14 04:31:51 -0400 |
commit | e470a883dd27541872ca896b77c95b835904b59f (patch) | |
tree | 9b73a0957f800913ddc68b107f010dcbf5d1fe27 /coredns.service | |
download | aur-coredns-git.tar.gz |
coredns-git
Diffstat (limited to 'coredns.service')
-rw-r--r-- | coredns.service | 20 |
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 |