aboutsummaryrefslogtreecommitdiff
path: root/contrib/unbound.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/unbound.service.in')
-rw-r--r--contrib/unbound.service.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/unbound.service.in b/contrib/unbound.service.in
index 3ddadfa95ee2..b3856690a4ca 100644
--- a/contrib/unbound.service.in
+++ b/contrib/unbound.service.in
@@ -7,7 +7,7 @@ WantedBy=multi-user.target
[Service]
ExecReload=/bin/kill -HUP $MAINPID
-ExecStart=/home/vagrant/unbound_systemd/unbound
+ExecStart=@UNBOUND_SBIN_DIR@/unbound
NotifyAccess=main
Type=notify
CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT
@@ -20,7 +20,7 @@ ProtectControlGroups=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
-ReadWritePaths=/etc/unbound /run
+ReadWritePaths=@UNBOUND_SYSCONF_DIR@ @UNBOUND_LOCALSTATE_DIR@ /run @UNBOUND_RUN_DIR@
RestrictAddressFamilies=AF_INET AF_UNIX
RestrictRealtime=true
SystemCallArchitectures=native