Browse Source

sysmocom-udhcpd-config: add systemd startup file

Fixes: SYS#735
neels/inmarsat
Henning Heinold 7 years ago
committed by Holger Hans Peter Freyther
parent
commit
8800a441a1
  1. 9
      recipes-apps/sysmocom-udhcpd-config/files/sysmocom-bsc/udhcpd.service
  2. 10
      recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_1.bb

9
recipes-apps/sysmocom-udhcpd-config/files/sysmocom-bsc/udhcpd.service

@ -0,0 +1,9 @@
[Unit]
Description=UDHCPD
[Service]
Type=simple
ExecStart=/usr/sbin/udhcpd -fS /etc/udhcpd.conf
[Install]
WantedBy=multi-user.target

10
recipes-apps/sysmocom-udhcpd-config/sysmocom-udhcpd-config_1.bb

@ -3,12 +3,18 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = "file://udhcpd.conf"
PR = "r3"
SRC_URI = "file://udhcpd.conf \
file://udhcpd.service \
"
PR = "r4"
CONFFILES_${PN} = "${sysconfdir}/udhcpd.conf"
FILES_${PN} += "${systemd_unitdir}"
do_install() {
install -d ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/udhcpd.conf ${D}${sysconfdir}/
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
install -m 0644 /${WORKDIR}/udhcpd.service ${D}${systemd_unitdir}/system/
ln -sf ../udhcpd.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
}

Loading…
Cancel
Save