does busybox 1.19 still support the arg `-m'?
in file meta/recipes-core/busybox/files/syslog
I found code section:
if [ -n "$MARKINT" ]; then SYSLOG_ARGS="$SYSLOG_ARGS -m $MARKINT" fi
but I can't find `-m' in the help of syslogd.
syslogd --help
BusyBox v1.19.3 (2012-01-11 12:34:06 CST) multi-call binary.
Usage: syslogd [OPTIONS]
System logging utility
-n Run in foreground
-O FILE Log to FILE (default:/var/log/messages)
-l N Log only messages more urgent than prio N (1-8)
-S Smaller output
-s SIZE Max size (KB) before rotation (default:200KB,0=off)
-b N N rotated logs to keep (default:1, max=99,
0=purge)
-R HOST[:PORT] Log to IP or hostname on PORT (default
PORT=514/UDP)
-L Log locally and via network (default is network
only if)
-C[size_kb] Log to shared mem buffer (use logread to read
it)
-f FILE Use FILE as config (default:/etc/syslog.conf)
Signature · 3 lines
Yi Qingliang [email protected] https://niqingliang2003.wordpress.com
and in syslog-startup.conf, the comments `incompatible with busybox' should be deleted.
#ROTATESIZE=0 # rotate log if grown beyond X [kByte] (incompatible
with busybox)
#ROTATEGENS=3 # keep X generations of rotated logs (incompatible with
busybox)
Quoted 36 lines · 倪庆亮
in file meta/recipes-core/busybox/files/syslog I found code section:
if [ -n "$MARKINT" ]; then
SYSLOG_ARGS="$SYSLOG_ARGS -m $MARKINT"
fi
but I can't find `-m' in the help of syslogd.syslogd --help
BusyBox v1.19.3 (2012-01-11 12:34:06 CST) multi-call binary.Usage: syslogd [OPTIONS]
System logging utility
-n Run in foreground -O FILE Log to FILE (default:/var/log/messages) -l N Log only messages more urgent than prio N (1-8) -S Smaller output -s SIZE Max size (KB) before rotation (default:200KB,0=off)
-b N N rotated logs to keep (default:1, max=99,
0=purge)
-R HOST[:PORT] Log to IP or hostname on PORT (default
PORT=514/UDP)
-L Log locally and via network (default is network
only if)
-C[size_kb] Log to shared mem buffer (use logread to read
it)
-f FILE Use FILE as config (default:/etc/syslog.conf)--
Yi Qingliang
[email protected]
https://niqingliang2003.wordpress.com
Signature · 3 lines
Yi Qingliang [email protected] https://niqingliang2003.wordpress.com
Quoted 6 lines · Ni Qingliang
in file meta/recipes-core/busybox/files/syslog
I found code section:if [ -n "$MARKINT" ]; then SYSLOG_ARGS="$SYSLOG_ARGS -m $MARKINT" fibut I can't find `-m' in the help of syslogd.
Looks like busybox disabled that code in 2007!? I've prepared a patch to remove this from the init script and syslog-startup.conf.
Joshua
Signature · 3 lines
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology CentreQuoted 8 lines · Ni Qingliang
and in syslog-startup.conf, the comments `incompatible with busybox' should be deleted.
#ROTATESIZE=0 # rotate log if grown beyond X [kByte] (incompatible
with busybox)
#ROTATEGENS=3 # keep X generations of rotated logs (incompatible with
busybox)
I've prepared a patch to remove those invalid comments.
Joshua
Signature · 3 lines
Joshua Lock
Yocto Project "Johannes factotum"
Intel Open Source Technology Centre