diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-05 19:09:54 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-09-05 19:09:54 +0000 |
commit | 24d65014bbdb2de0bde5ca9e5664baa9f7ac7121 (patch) | |
tree | 54f02b9e3944c864e7a2daea1815e8580965596b /src/systemd | |
parent | 8e22a2f6f77dc2d10969d8603c59a8834164b903 (diff) | |
download | vyos-1x-24d65014bbdb2de0bde5ca9e5664baa9f7ac7121.tar.gz vyos-1x-24d65014bbdb2de0bde5ca9e5664baa9f7ac7121.zip |
T2958: Refactor DHCP-server systemd unit and lease
Render isc-dhcp-server systemd unit from configuration
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/isc-dhcp-server.service | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/systemd/isc-dhcp-server.service b/src/systemd/isc-dhcp-server.service deleted file mode 100644 index a7d86e69c..000000000 --- a/src/systemd/isc-dhcp-server.service +++ /dev/null @@ -1,24 +0,0 @@ -[Unit] -Description=ISC DHCP IPv4 server -Documentation=man:dhcpd(8) -RequiresMountsFor=/run -ConditionPathExists=/run/dhcp-server/dhcpd.conf -After=vyos-router.service - -[Service] -Type=forking -WorkingDirectory=/run/dhcp-server -RuntimeDirectory=dhcp-server -RuntimeDirectoryPreserve=yes -Environment=PID_FILE=/run/dhcp-server/dhcpd.pid CONFIG_FILE=/run/dhcp-server/dhcpd.conf LEASE_FILE=/config/dhcpd.leases -PIDFile=/run/dhcp-server/dhcpd.pid -ExecStartPre=/bin/sh -ec '\ -touch ${LEASE_FILE}; \ -chown dhcpd:vyattacfg ${LEASE_FILE}* ; \ -chmod 664 ${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] -WantedBy=multi-user.target |