summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-12 14:18:51 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-12 21:52:26 +0200
commit468a109e058b8b5e2d5b4db11ecab23d73c802fb (patch)
treeb648add2ba88f5d8cd7779f696de96cec42046de /src/systemd
parent7c27ad6480d99e7bd10e8ccb3c0a80d485d955ef (diff)
downloadvyos-1x-468a109e058b8b5e2d5b4db11ecab23d73c802fb.tar.gz
vyos-1x-468a109e058b8b5e2d5b4db11ecab23d73c802fb.zip
dhcp-server: T2185: create directories in /run on-demand
Commit bc68244 ("dhcp-server: T2185: migrate from SysVinit to systemd") migrated the DHCP subsystem to systemd, necessary directories in the volatile /run directory have not been created.
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/isc-dhcp-server.service3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/systemd/isc-dhcp-server.service b/src/systemd/isc-dhcp-server.service
index 39a97fb4e..4c3cb9920 100644
--- a/src/systemd/isc-dhcp-server.service
+++ b/src/systemd/isc-dhcp-server.service
@@ -7,8 +7,7 @@ After=time-sync.target
ConditionPathExists=/run/dhcp-server/dhcpd.conf
[Service]
-
-RuntimeDirectory=dhcp-server
+WorkingDirectory=/run/dhcp-server
# The leases files need to be root:vyattacfg even when dropping privileges
ExecStart=/bin/sh -ec '\
CONFIG_FILE=/run/dhcp-server/dhcpd.conf; \