aboutsummaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/klogd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox-initscripts/klogd.initd')
-rw-r--r--main/busybox-initscripts/klogd.initd20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/busybox-initscripts/klogd.initd b/main/busybox-initscripts/klogd.initd
new file mode 100644
index 0000000000..5cf7e6fd16
--- /dev/null
+++ b/main/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 $?
+}
+