mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-07 15:40:01 +00:00
dhcp: add native systemd support for dhcp-relay
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
committed by
Koen Kooi
parent
3a5e1a0d86
commit
2cf07dd7d0
@@ -3,9 +3,11 @@ FILESEXTRAPATHS := "${THISDIR}/files"
|
|||||||
|
|
||||||
inherit systemd
|
inherit systemd
|
||||||
|
|
||||||
PRINC := "${@int(PRINC) + 2}"
|
PRINC := "${@int(PRINC) + 3}"
|
||||||
|
|
||||||
SYSTEMD_PACKAGES = "dhcp-server-systemd"
|
SYSTEMD_PACKAGES = "dhcp-server-systemd dhcp-relay-systemd"
|
||||||
SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service"
|
SYSTEMD_SERVICE_dhcp-server-systemd = "dhcpd.service"
|
||||||
|
SYSTEMD_SERVICE_dhcp-relay-systemd = "dhcrelay.service"
|
||||||
|
|
||||||
SRC_URI += "file://dhcpd.service"
|
SRC_URI += "file://dhcpd.service \
|
||||||
|
file://dhcrelay.service"
|
||||||
|
|||||||
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=DHCP Relay Agent Daemon
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=/etc/default/dhcp-relay
|
||||||
|
ExecStart=/usr/sbin/dhcrelay -d $DHCRELAYARGS
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user