summaryrefslogtreecommitdiff
path: root/src/systemd/isc-dhcp-server.service
diff options
context:
space:
mode:
authorDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-07-29 10:57:32 +0000
committerDaniil Baturin <daniil@vyos.io>2021-08-09 08:03:51 -0500
commite737bac9fc8c59c1e99862d805dc110ea52dd393 (patch)
tree0aff9629fc192003ea7c6c4780e97292286dba67 /src/systemd/isc-dhcp-server.service
parentf8a34aedf16898a8bb8f568a072052942f9af439 (diff)
downloadvyos-1x-e737bac9fc8c59c1e99862d805dc110ea52dd393.tar.gz
vyos-1x-e737bac9fc8c59c1e99862d805dc110ea52dd393.zip
dhcp-server: T2432: Run dhcpd in group vyattacfg to allow recreate lease files
Diffstat (limited to 'src/systemd/isc-dhcp-server.service')
-rw-r--r--src/systemd/isc-dhcp-server.service6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemd/isc-dhcp-server.service b/src/systemd/isc-dhcp-server.service
index 9aa70a7cc..a7d86e69c 100644
--- a/src/systemd/isc-dhcp-server.service
+++ b/src/systemd/isc-dhcp-server.service
@@ -14,10 +14,10 @@ Environment=PID_FILE=/run/dhcp-server/dhcpd.pid CONFIG_FILE=/run/dhcp-server/dhc
PIDFile=/run/dhcp-server/dhcpd.pid
ExecStartPre=/bin/sh -ec '\
touch ${LEASE_FILE}; \
-chown dhcpd:nogroup ${LEASE_FILE}* ; \
+chown dhcpd:vyattacfg ${LEASE_FILE}* ; \
chmod 664 ${LEASE_FILE}* ; \
-/usr/sbin/dhcpd -4 -t -T -q -user dhcpd -group nogroup -pf ${PID_FILE} -cf ${CONFIG_FILE} -lf ${LEASE_FILE} '
-ExecStart=/usr/sbin/dhcpd -4 -q -user dhcpd -group nogroup -pf ${PID_FILE} -cf ${CONFIG_FILE} -lf ${LEASE_FILE}
+/usr/sbin/dhcpd -4 -t -T -q -user dhcpd -group vyattacfg -pf ${PID_FILE} -cf ${CONFIG_FILE} -lf ${LEASE_FILE} '
+ExecStart=/usr/sbin/dhcpd -4 -q -user dhcpd -group vyattacfg -pf ${PID_FILE} -cf ${CONFIG_FILE} -lf ${LEASE_FILE}
Restart=always
[Install]