summaryrefslogtreecommitdiffstats
path: root/meta-systemd
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2012-06-10 21:46:39 +0000
committerKoen Kooi <koen@dominion.thruhere.net>2012-07-16 09:39:05 +0200
commit326e027816d7af4d4896e9e6d74842aa327352e0 (patch)
tree2d6c61b77a7e3999de347b2339662f09bda6d461 /meta-systemd
parent519d60e71767933eee082ee506b5deb2ad06fd3f (diff)
downloadmeta-openembedded-326e027816d7af4d4896e9e6d74842aa327352e0.tar.gz
busybox: move systemd support to meta-systemd
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-systemd')
-rw-r--r--meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in8
-rw-r--r--meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in13
-rw-r--r--meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend23
3 files changed, 44 insertions, 0 deletions
diff --git a/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in
new file mode 100644
index 000000000..d7c77558f
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-klogd.service.in
@@ -0,0 +1,8 @@
1[Unit]
2Description=Kernel Logging Service
3
4[Service]
5ExecStart=@base_sbindir@/klogd -n
6
7[Install]
8WantedBy=multi-user.target
diff --git a/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in
new file mode 100644
index 000000000..27b9831da
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox/busybox-syslog.service.in
@@ -0,0 +1,13 @@
1[Unit]
2Description=System Logging Service
3Wants=busybox-klogd.service
4
5[Service]
6ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
7EnvironmentFile=-/etc/default/busybox-syslog
8ExecStart=@base_sbindir@/syslogd -n $OPTIONS
9Sockets=syslog.socket
10
11[Install]
12WantedBy=multi-user.target
13Also=busybox-klogd.service
diff --git a/meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend b/meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
new file mode 100644
index 000000000..a0ae2ce18
--- /dev/null
+++ b/meta-systemd/meta-oe/recipes-core/busybox/busybox_1.19.4.bbappend
@@ -0,0 +1,23 @@
1inherit systemd
2
3PRINC := "${@int(PRINC) + 1}"
4
5# look for files in the layer first
6FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
7
8SRC_URI += "file://busybox-syslog.service.in \
9 file://busybox-klogd.service.in"
10
11SYSTEMD_PACKAGES = "${PN}-syslog-systemd"
12SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service"
13
14do_install_append() {
15 install -d ${D}${systemd_unitdir}/system
16 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-syslog.service.in \
17 > ${D}${systemd_unitdir}/system/busybox-syslog.service
18 sed 's,@base_sbindir@,${base_sbindir},g' < ${WORKDIR}/busybox-klogd.service.in \
19 > ${D}${systemd_unitdir}/system/busybox-klogd.service
20
21 ln -sf /dev/null ${D}${systemd_unitdir}/system/syslog.service
22}
23FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service"