diff options
author | Andreas Müller <schnitzeltony@googlemail.com> | 2012-06-10 21:46:39 +0000 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2012-07-16 09:39:05 +0200 |
commit | 326e027816d7af4d4896e9e6d74842aa327352e0 (patch) | |
tree | 2d6c61b77a7e3999de347b2339662f09bda6d461 /meta-systemd | |
parent | 519d60e71767933eee082ee506b5deb2ad06fd3f (diff) | |
download | meta-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')
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] | ||
2 | Description=Kernel Logging Service | ||
3 | |||
4 | [Service] | ||
5 | ExecStart=@base_sbindir@/klogd -n | ||
6 | |||
7 | [Install] | ||
8 | WantedBy=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] | ||
2 | Description=System Logging Service | ||
3 | Wants=busybox-klogd.service | ||
4 | |||
5 | [Service] | ||
6 | ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service | ||
7 | EnvironmentFile=-/etc/default/busybox-syslog | ||
8 | ExecStart=@base_sbindir@/syslogd -n $OPTIONS | ||
9 | Sockets=syslog.socket | ||
10 | |||
11 | [Install] | ||
12 | WantedBy=multi-user.target | ||
13 | Also=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 @@ | |||
1 | inherit systemd | ||
2 | |||
3 | PRINC := "${@int(PRINC) + 1}" | ||
4 | |||
5 | # look for files in the layer first | ||
6 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
7 | |||
8 | SRC_URI += "file://busybox-syslog.service.in \ | ||
9 | file://busybox-klogd.service.in" | ||
10 | |||
11 | SYSTEMD_PACKAGES = "${PN}-syslog-systemd" | ||
12 | SYSTEMD_SERVICE_${PN}-syslog-systemd = "busybox-syslog.service" | ||
13 | |||
14 | do_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 | } | ||
23 | FILES_${PN}-syslog-systemd = "${systemd_unitdir}/system/syslog.service" | ||