mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +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:
parent
3a5e1a0d86
commit
2cf07dd7d0
|
|
@ -3,9 +3,11 @@ FILESEXTRAPATHS := "${THISDIR}/files"
|
|||
|
||||
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-relay-systemd = "dhcrelay.service"
|
||||
|
||||
SRC_URI += "file://dhcpd.service"
|
||||
SRC_URI += "file://dhcpd.service \
|
||||
file://dhcrelay.service"
|
||||
|
|
|
|||
10
meta-oe/recipes-connectivity/dhcp/files/dhcrelay.service
Normal file
10
meta-oe/recipes-connectivity/dhcp/files/dhcrelay.service
Normal file
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user