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.
This commit is contained in:
Holger Hans Peter Freyther 2012-09-16 15:38:17 +08:00 committed by Holger Hans Peter Freyther
parent 6431d35a85
commit da70ced095
3 changed files with 15 additions and 0 deletions

View File

@ -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!)

View File

@ -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}"

View File

@ -1 +1,2 @@
require recipes-core/busybox/${PN}_sysmocom.inc
require recipes-core/busybox/${PN}_sysmocom_systemd.inc