Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: rc.syslog.new
===================================================================
--- rc.syslog.new	(nonexistent)
+++ rc.syslog.new	(revision 5)
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# Start/stop/restart the system logging daemon.
+#
+
+# Source default settings:
+if [ -r /etc/default/syslogd ]; then
+  . /etc/default/syslogd
+fi
+
+syslogd_start() {
+  if [ -x /usr/sbin/syslogd ]; then
+    echo "Starting syslogd daemon:  /usr/sbin/syslogd ${SYSLOGD_OPTS}"
+    /usr/sbin/syslogd $SYSLOGD_OPTS
+  fi
+}
+
+syslogd_stop() {
+  killall syslogd 2> /dev/null
+}
+
+syslogd_restart() {
+  syslogd_stop
+  sleep 1
+  syslogd_start
+}
+
+case "$1" in
+'start')
+  syslogd_start
+  ;;
+'stop')
+  syslogd_stop
+  ;;
+'restart')
+  syslogd_restart
+  ;;
+*)
+  echo "usage $0 start|stop|restart"
+esac