diff options
author | Phil Blundell <philb@gnu.org> | 2004-08-07 12:01:08 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-08-07 12:01:08 +0000 |
commit | 145cc721a2791c3e032ef18d1f96daa7f5350691 (patch) | |
tree | 0ca2e31bf2252b9b4164acda4f24b1efedb8d882 /busybox/busybox-1.00-rc2/syslog | |
parent | df056f9c1d74ecf3334aec3502b0ee304be350e9 (diff) |
Merge bk://openembedded@openembedded.bkbits.net/packages
into workhouse.nexus.co.uk:/home/pb/oe/oe-packages
2004/08/07 13:00:51+01:00 nexus.co.uk!pb
update busybox back to 1.00-rc2; add McQueen patch for modprobe
BKrev: 4114c484p-qOmdVHZV0prZBT4vb2jg
Diffstat (limited to 'busybox/busybox-1.00-rc2/syslog')
-rw-r--r-- | busybox/busybox-1.00-rc2/syslog | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/busybox/busybox-1.00-rc2/syslog b/busybox/busybox-1.00-rc2/syslog new file mode 100644 index 0000000000..5c46a28a9a --- /dev/null +++ b/busybox/busybox-1.00-rc2/syslog @@ -0,0 +1,34 @@ +#! /bin/sh +# +# syslog init.d script for busybox syslogd/klogd +# Written by Robert Griebl <sandman@handhelds.org> +# + +# log to remote host +# SYSLOG_ARGS="-R remote.host" + +# log to 16K shm circular buffer +SYSLOG_ARGS="-C" + +set -e + +case "$1" in + start) + echo -n "Starting syslogd/klogd: " + start-stop-daemon -S -b -n syslogd -a /sbin/syslogd -- -n $SYSLOG_ARGS + start-stop-daemon -S -b -n klogd -a /sbin/klogd -- -n + echo "done" + ;; + stop) + echo -n "Stopping syslogd/klogd: " + start-stop-daemon -K -n syslogd + start-stop-daemon -K -n klogd + echo "done" + ;; + *) + echo "Usage: syslog {start|stop}" >&2 + exit 1 + ;; +esac + +exit 0 |