summaryrefslogtreecommitdiffstats
path: root/main/busybox-initscripts/syslog.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/busybox-initscripts/syslog.initd')
-rw-r--r--main/busybox-initscripts/syslog.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/busybox-initscripts/syslog.initd b/main/busybox-initscripts/syslog.initd
new file mode 100644
index 00000000..390cd6de
--- /dev/null
+++ b/main/busybox-initscripts/syslog.initd
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+depend() {
+ need clock hostname klogd
+ provide logger
+}
+
+start() {
+ ebegin "Starting busybox system logging"
+ start-stop-daemon --start --exec /sbin/syslogd -- ${SYSLOGD_OPTS}
+ eend $?
+}
+
+stop () {
+ ebegin "Stopping busybox system logging"
+ start-stop-daemon --stop --exec /sbin/syslogd
+ eend $?
+}
+