Set coredns's homedir to /var/lib/coredns (#175)

This commit is contained in:
Xuanwo 2019-06-03 21:24:33 +08:00 committed by Chris O'Haver
parent d9e12ec6f9
commit 3b3fbd7832
3 changed files with 8 additions and 4 deletions

View file

@ -4,6 +4,9 @@ Use `coredns.service` as a systemd service file. It defaults to using a "coredns
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`).
In order to work, you need to do following jobs:
- Put `coredns` binary in `/usr/bin`
- Put `Corefile` at `/etc/coredns/Corefile`
- Put `coredns-sysusers.conf` in `/usr/lib/sysusers.d`
- Put `coredns-tmpfiles.conf` in `/usr/lib/tmpfiles.d`

View file

@ -1 +1 @@
u coredns - "CoreDNS is a DNS server that chains plugins " /
u coredns - "CoreDNS is a DNS server that chains plugins" /var/lib/coredns

View file

@ -0,0 +1 @@
d /var/lib/coredns 0755 coredns coredns -