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
committerDmitriyEshenko <dmitriy.eshenko@vyos.io>2021-07-29 10:57:32 +0000
commit54abd97845fd4c4437d8b5c3892f83116da57ac6 (patch)
tree7b6365c111159929d62490af1de56aa9b380a913 /src/systemd/isc-dhcp-server.service
parent9e18f625dfddefa6fec7362e7e6758821389152a (diff)
downloadvyos-1x-54abd97845fd4c4437d8b5c3892f83116da57ac6.tar.gz
vyos-1x-54abd97845fd4c4437d8b5c3892f83116da57ac6.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]