mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-03-14 14:16:16 +01:00
Set coredns's homedir to /var/lib/coredns (#175)
This commit is contained in:
parent
d9e12ec6f9
commit
3b3fbd7832
3 changed files with 8 additions and 4 deletions
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
|
|
1
systemd/coredns-tmpfiles.conf
Normal file
1
systemd/coredns-tmpfiles.conf
Normal file
|
@ -0,0 +1 @@
|
|||
d /var/lib/coredns 0755 coredns coredns -
|
Loading…
Reference in a new issue