mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 11:38:34 +00:00
busybox: systemd support now in OE-Core
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
committed by
Martin Jansa
parent
4b8bb9992a
commit
2b0025ce8d
@@ -1,8 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Kernel Logging Service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
ExecStart=@base_sbindir@/klogd -n
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=System Logging Service
|
|
||||||
Wants=busybox-klogd.service
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
EnvironmentFile=-/etc/default/busybox-syslog
|
|
||||||
ExecStart=@base_sbindir@/syslogd -n $OPTIONS
|
|
||||||
Sockets=syslog.socket
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
Also=busybox-klogd.service
|
|
||||||
Alias=syslog.service
|
|
||||||
@@ -1,25 +1,3 @@
|
|||||||
inherit systemd
|
|
||||||
|
|
||||||
# look for files in the layer first
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
|
||||||
|
|
||||||
SRC_URI += "file://busybox-syslog.service.in \
|
|
||||||
file://busybox-klogd.service.in"
|
|
||||||
|
|
||||||
SYSTEMD_PACKAGES = "${PN}-syslog"
|
|
||||||
SYSTEMD_SERVICE_${PN}-syslog = "busybox-syslog.service"
|
|
||||||
|
|
||||||
do_install_append() {
|
|
||||||
install -d ${D}${systemd_unitdir}/system
|
|
||||||
sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
|
|
||||||
> ${D}${systemd_unitdir}/system/busybox-syslog.service
|
|
||||||
sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
|
|
||||||
> ${D}${systemd_unitdir}/system/busybox-klogd.service
|
|
||||||
|
|
||||||
ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service
|
|
||||||
}
|
|
||||||
FILES_${PN}-syslog += "${systemd_unitdir}/system/syslog.service"
|
|
||||||
|
|
||||||
RPROVIDES_${PN}-syslog += "${PN}-syslog-systemd"
|
RPROVIDES_${PN}-syslog += "${PN}-syslog-systemd"
|
||||||
RREPLACES_${PN}-syslog += "${PN}-syslog-systemd"
|
RREPLACES_${PN}-syslog += "${PN}-syslog-systemd"
|
||||||
RCONFLICTS_${PN}-syslog += "${PN}-syslog-systemd"
|
RCONFLICTS_${PN}-syslog += "${PN}-syslog-systemd"
|
||||||
|
|||||||
Reference in New Issue
Block a user