summaryrefslogtreecommitdiffstats
path: root/package/busybox/S01logging
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/S01logging')
-rw-r--r--package/busybox/S01logging26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/busybox/S01logging b/package/busybox/S01logging
new file mode 100644
index 000000000..6badebe1a
--- /dev/null
+++ b/package/busybox/S01logging
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# Start logging
+#
+
+case "$1" in
+ start)
+ echo -n "Starting logging :"
+ start-stop-daemon -S -q -p /var/run/syslog.pid --exec /sbin/syslogd -- -m 0
+ start-stop-daemon -S -q -p /var/run/klogd.pid --exec /sbin/klogd
+ echo "OK"
+ ;;
+ stop)
+ echo -n "Stopping logging :"
+ start-stop-daemon -K -q -p /var/run/syslog.pid
+ start-stop-daemon -K -q -p /var/run/klogd.pid
+ echo "OK"
+ ;;
+ restart|reload)
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $?