coredns-deployment/debian/coredns.service
Miek Gieben aaf5dae5dd
debian: add package building (#20)
This only builds on a debian system, because it uses the dpkg-helper
and other utils. But it builds! Multiarch is supported, you can easily
build a package for amd64, arm and arm64. The Makefile does this by
default.

Massively update the systemd file.
2017-11-11 14:57:29 +00:00

20 lines
455 B
Desktop File

[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