Skip to content

Commit

Permalink
Set a WorkingDirectory (#33)
Browse files Browse the repository at this point in the history
Set the WorkingDirectory in systemd unit to /etc/coredns to make zone
file relative paths work.

[patch]

Signed-off-by: Ben Kochie <superq@gmail.com>
  • Loading branch information
SuperQ authored Jan 25, 2020
1 parent d04da19 commit 6c505dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/coredns.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ LimitNPROC=512
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=true
WorkingDirectory=/etc/coredns

User={{ coredns_system_user }}
Group={{ coredns_system_group }}
Expand Down

0 comments on commit 6c505dd

Please # to comment.