dhcp: move systemd support to meta-systemd

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2012-06-10 21:46:48 +00:00
committed by Koen Kooi
parent ca89a23506
commit 1e6cf9483d
3 changed files with 2 additions and 2 deletions
@@ -1,13 +0,0 @@
# look for files in the layer first
FILESEXTRAPATHS := "${THISDIR}/files"
inherit systemd
PRINC := "${@int(PRINC) + 1}"
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 \
file://dhcrelay.service"
@@ -1,12 +0,0 @@
[Unit]
Description=Dynamic Host Configuration Protocol (DHCP)
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/dhcpd.pid
EnvironmentFile=-/etc/default/dhcp-server
ExecStart=/usr/sbin/dhcpd -cf /etc/dhcp/dhcpd.conf -q $INTERFACES
[Install]
WantedBy=multi-user.target
@@ -1,10 +0,0 @@
[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