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:
Andreas Müller 2012-02-16 02:03:15 +00:00 committed by Koen Kooi
parent 3a5e1a0d86
commit 2cf07dd7d0
2 changed files with 15 additions and 3 deletions

View File

@ -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"

View 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