diff options
author | Daniil Baturin <daniil@vyos.io> | 2021-07-29 21:59:00 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-29 21:59:00 +0700 |
commit | 417b46fb11061615205038745695e84d48055979 (patch) | |
tree | 7b6365c111159929d62490af1de56aa9b380a913 /src | |
parent | 9e18f625dfddefa6fec7362e7e6758821389152a (diff) | |
parent | 54abd97845fd4c4437d8b5c3892f83116da57ac6 (diff) | |
download | vyos-1x-417b46fb11061615205038745695e84d48055979.tar.gz vyos-1x-417b46fb11061615205038745695e84d48055979.zip |
Merge pull request #945 from DmitriyEshenko/1x-29072021-01
dhcp-server: T2432: Run dhcpd in group vyattacfg to allow recreate le…
Diffstat (limited to 'src')
-rw-r--r-- | src/systemd/isc-dhcp-server.service | 6 |
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] |