From da70ced0959d5ee9618b54e54e0c201e80bc4dff Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 16 Sep 2012 15:38:17 +0800 Subject: [PATCH] busybox: Change the busybox syslog to use the internal ring buffer again Revert the logging to the memory buffer to avoid writes to the disk as the log directory might or might not be on tmpfs. --- .../busybox/busybox-systemd/syslog-startup.conf | 10 ++++++++++ recipes-core/busybox/busybox_sysmocom_systemd.inc | 4 ++++ yocto-master/busybox_1.20.2.bbappend | 1 + 3 files changed, 15 insertions(+) create mode 100644 recipes-core/busybox/busybox-systemd/syslog-startup.conf create mode 100644 recipes-core/busybox/busybox_sysmocom_systemd.inc diff --git a/recipes-core/busybox/busybox-systemd/syslog-startup.conf b/recipes-core/busybox/busybox-systemd/syslog-startup.conf new file mode 100644 index 0000000..b434291 --- /dev/null +++ b/recipes-core/busybox/busybox-systemd/syslog-startup.conf @@ -0,0 +1,10 @@ +# sysmocom default configuration for systemd +DESTINATION="buffer" # log destinations (buffer file remote) +MARKINT=20 # intervall between --mark-- entries +LOGFILE=/var/log/messages # where to log (file) +REMOTE=loghost:514 # where to log (syslog remote) +REDUCE=no # reduce-size logging +#ROTATESIZE=0 # rotate log if grown beyond X [kByte] (incompatible with busybox) +#ROTATEGENS=3 # keep X generations of rotated logs (incompatible with busybox) +BUFFERSIZE=64 # size of circular buffer [kByte] +FOREGROUND=no # run in foreground (don't use!) diff --git a/recipes-core/busybox/busybox_sysmocom_systemd.inc b/recipes-core/busybox/busybox_sysmocom_systemd.inc new file mode 100644 index 0000000..03460c1 --- /dev/null +++ b/recipes-core/busybox/busybox_sysmocom_systemd.inc @@ -0,0 +1,4 @@ +# Make busybox work nicely with systemd +SYSMOCOM_D := "${@os.path.dirname(bb.data.getVar('FILE', d, True))}" +FILESEXTRAPATHS_prepend := "${SYSMOCOM}/${PN}-systemd:${SYSMOCOM_D}/${PN}:" +PRINC := "${@int(PRINC) + 2}" diff --git a/yocto-master/busybox_1.20.2.bbappend b/yocto-master/busybox_1.20.2.bbappend index 2821536..3135d22 100644 --- a/yocto-master/busybox_1.20.2.bbappend +++ b/yocto-master/busybox_1.20.2.bbappend @@ -1 +1,2 @@ require recipes-core/busybox/${PN}_sysmocom.inc +require recipes-core/busybox/${PN}_sysmocom_systemd.inc