diff options
| author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-05-21 16:59:59 +0200 |
|---|---|---|
| committer | Mykhaylo Sul <ext-mykhaylo.sul@here.com> | 2019-07-17 15:41:37 +0300 |
| commit | 01c5a3d602ef5acec7a191be6dc3a0b28b408f38 (patch) | |
| tree | 8989832a63c22fe80ff58762d8ae26a8ad02edf4 | |
| parent | bee5586ccef8e6f9c8e0b0889908c557c1c082dd (diff) | |
| download | meta-updater-01c5a3d602ef5acec7a191be6dc3a0b28b408f38.tar.gz | |
Add example recipe for systemd-journald configuration
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| -rw-r--r-- | recipes-support/systemd-journald-persistent/files/10-persistent-journal.conf | 3 | ||||
| -rw-r--r-- | recipes-support/systemd-journald-persistent/systemd-journald-persistent.bb | 20 |
2 files changed, 23 insertions, 0 deletions
diff --git a/recipes-support/systemd-journald-persistent/files/10-persistent-journal.conf b/recipes-support/systemd-journald-persistent/files/10-persistent-journal.conf new file mode 100644 index 0000000..a56527c --- /dev/null +++ b/recipes-support/systemd-journald-persistent/files/10-persistent-journal.conf | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | [Journal] | ||
| 2 | Storage=persistent | ||
| 3 | SystemMaxUse=64M | ||
diff --git a/recipes-support/systemd-journald-persistent/systemd-journald-persistent.bb b/recipes-support/systemd-journald-persistent/systemd-journald-persistent.bb new file mode 100644 index 0000000..1715fe1 --- /dev/null +++ b/recipes-support/systemd-journald-persistent/systemd-journald-persistent.bb | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | SUMMARY = "Configuration for systemd-journald" | ||
| 2 | DESCRIPTION = "Provides configuration for systemd-journald, so that logs are \ | ||
| 3 | stored on persistent storage" | ||
| 4 | LICENSE = "MPL-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MPL-2.0;md5=815ca599c9df247a0c7f619bab123dad" | ||
| 6 | |||
| 7 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
| 8 | |||
| 9 | SRC_URI_append = " file://10-persistent-journal.conf" | ||
| 10 | PR = "r1" | ||
| 11 | |||
| 12 | S = "${WORKDIR}" | ||
| 13 | |||
| 14 | FILES_${PN} = "${systemd_unitdir}/journald.conf.d/*" | ||
| 15 | |||
| 16 | do_install() { | ||
| 17 | install -d ${D}/${systemd_unitdir}/journald.conf.d | ||
| 18 | install -m 0644 ${WORKDIR}/10-persistent-journal.conf ${D}/${systemd_unitdir}/journald.conf.d | ||
| 19 | } | ||
| 20 | |||
