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.ulogd
===================================================================
--- rc.ulogd	(nonexistent)
+++ rc.ulogd	(revision 295)
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Start/stop/restart ulogd:
+#
+
+ulogd_start() {
+  if [ -x /usr/sbin/ulogd ]; then
+    echo "Starting ulogd daemon:  /usr/sbin/ulogd "
+    /usr/sbin/ulogd -d 2> /dev/null
+  fi
+}
+
+ulogd_stop() {
+  killall ulogd 2> /dev/null
+}
+
+ulogd_restart() {
+  ulogd_stop
+  sleep 1
+  ulogd_start
+}
+
+case "$1" in
+'start')
+ ulogd_start
+  ;;
+'stop')
+  ulogd_stop
+  ;;
+'restart')
+ ulogd_restart
+  ;;
+*)
+  echo "usage $0 start|stop|restart"
+esac
Index: ulogd.logrotate
===================================================================
--- ulogd.logrotate	(nonexistent)
+++ ulogd.logrotate	(revision 295)
@@ -0,0 +1,7 @@
+/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.pcap {
+    missingok
+    sharedscripts
+    postrotate
+      /bin/killall -HUP ulogd 2> /dev/null || true
+    endscript
+}