Move systemd definitions internally

Signed-off-by: Lorenzo Fontana <[email protected]>
This commit is contained in:
Lorenzo Fontana committed 2019-02-21 17:20:56 +01:00
1 parent 4c451e66c5
commit 78898845b7
5 files changed
+28 -10

No files matched your search

+19
View File
@@ -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_BIND_SERVICE
AmbientCapabilities=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