diff options
author | rany | 2021-11-14 12:27:35 +0200 |
---|---|---|
committer | rany | 2021-11-14 12:27:35 +0200 |
commit | 749c6cf7747fabeec1bef5ff5e469b0241885122 (patch) | |
tree | 6c2d08bc385e1dc21d096341af7a85f9ba03b168 /coredns.service | |
download | aur-749c6cf7747fabeec1bef5ff5e469b0241885122.tar.gz |
initial commit
Diffstat (limited to 'coredns.service')
-rw-r--r-- | coredns.service | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/coredns.service b/coredns.service new file mode 100644 index 000000000000..cfd1a19f5703 --- /dev/null +++ b/coredns.service @@ -0,0 +1,19 @@ +[Unit] +Description=CoreDNS DNS server +Documentation=https://coredns.io +After=network.target + +[Service] +PermissionsStartOnly=true +LimitNOFILE=1048576 +LimitNPROC=512 +CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE +AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE +NoNewPrivileges=true +User=coredns +ExecStart=/usr/bin/coredns -conf=/etc/coredns/Corefile +ExecReload=/bin/kill -SIGUSR1 $MAINPID +Restart=on-failure + +[Install] +WantedBy=multi-user.target |