coredns-deployment/systemd
Lorenzo Fontana 39c9f7ed76 Systemd sysusers directory (#68)
Signed-off-by: Lorenzo Fontana <lo@linux.com>
2018-04-06 11:26:50 +01:00
..
coredns-sysusers.conf Systemd sysusers directory (#68) 2018-04-06 11:26:50 +01:00
coredns.service Systemd sysusers directory (#68) 2018-04-06 11:26:50 +01:00
README.md Systemd sysusers directory (#68) 2018-04-06 11:26:50 +01:00

Systemd Service File

Use coredns.service as a systemd service file. It defaults to using a "coredns" user with a homedir of /var/lib/coredns and the binary lives in /usr/bin and the config in /etc/coredns/Corefile.

In order to work, the systemd unit needs a user named coredns, an handy way to provide it is to use the systemd-sysusers service by installing the coredns-sysusers.conf file in the sysusers.d folder (e.g: /usr/lib/sysusers.d).