diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-11 13:25:47 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-06-11 13:25:47 +0000 |
commit | b0a83e81230c8a6e83c139307079b33c1cd9441f (patch) | |
tree | 20143364d9c11290b536b94783c8104242b872bc /core/busybox-initscripts/klogd.initd | |
parent | f0ce46793efe6e5386086cc035e8fa1cb81c1b43 (diff) | |
download | aports-b0a83e81230c8a6e83c139307079b33c1cd9441f.tar.bz2 aports-b0a83e81230c8a6e83c139307079b33c1cd9441f.tar.xz |
core/busybox-initscripts: added klogd script and mdev stuff
we split the syslogd and klogd into different scripts since klog should
not be run in vserver while syslog should.
the mdev config and helper scripts were moved from alpine-baselayout too
Diffstat (limited to 'core/busybox-initscripts/klogd.initd')
-rw-r--r-- | core/busybox-initscripts/klogd.initd | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/core/busybox-initscripts/klogd.initd b/core/busybox-initscripts/klogd.initd new file mode 100644 index 0000000000..5cf7e6fd16 --- /dev/null +++ b/core/busybox-initscripts/klogd.initd @@ -0,0 +1,20 @@ +#!/sbin/runscript + +depend() { + need clock hostname + provide logger + keyword novserver +} + +start() { + ebegin "Starting busybox kernel logging" + start-stop-daemon --start --exec /sbin/klogd -- ${KLOGD_OPTS} + eend $? +} + +stop () { + ebegin "Stopping busybox kernel logging" + start-stop-daemon --stop --exec /sbin/klogd + eend $? +} + |