Skip to content

Commit 6c505dd

Browse files
authored
Set a WorkingDirectory (#33)
Set the WorkingDirectory in systemd unit to /etc/coredns to make zone file relative paths work. [patch] Signed-off-by: Ben Kochie <[email protected]>
1 parent d04da19 commit 6c505dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/coredns.service.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LimitNPROC=512
1414
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
1515
AmbientCapabilities=CAP_NET_BIND_SERVICE
1616
NoNewPrivileges=true
17+
WorkingDirectory=/etc/coredns
1718

1819
User={{ coredns_system_user }}
1920
Group={{ coredns_system_group }}

0 commit comments

Comments
 (0)