summaryrefslogtreecommitdiff
path: root/system/ulogd/rc.ulogd
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-11 15:18:47 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 15:18:47 +0200
commitc63980382762182bd873afef9b8801ad3ed742f9 (patch)
treecc33e3b3f1cffd26adce029a37c185800578440c /system/ulogd/rc.ulogd
parentc6970c498c9819b2e7157b250c15eaf3c02a9ffb (diff)
downloadslackbuilds-c63980382762182bd873afef9b8801ad3ed742f9.tar.gz
system/ulogd: Initial import
Diffstat (limited to 'system/ulogd/rc.ulogd')
-rw-r--r--system/ulogd/rc.ulogd37
1 files changed, 37 insertions, 0 deletions
diff --git a/system/ulogd/rc.ulogd b/system/ulogd/rc.ulogd
new file mode 100644
index 0000000000..ba7bcc3568
--- /dev/null
+++ b/system/ulogd/rc.ulogd
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Start/stop/restart the userspace logging daemon ulogd
+#
+# Written for Slackware Linux by Robby Workman <http://rlworkman.net>
+# ## (by modifying one of Pat's scripts)
+
+ulogd_start() {
+ if [ -x /usr/sbin/ulogd ]; then
+ /bin/echo "Starting ulogd daemon: /usr/sbin/ulogd "
+ /usr/sbin/ulogd -d 2> /dev/null
+ /bin/sleep 1
+ fi
+}
+
+ulogd_stop() {
+ /bin/killall ulogd 2> /dev/null
+}
+
+ulogd_restart() {
+ ulogd_stop
+ /bin/sleep 1
+ ulogd_start
+}
+
+case "$1" in
+'start')
+ ulogd_start
+ ;;
+'stop')
+ ulogd_stop
+ ;;
+'restart')
+ ulogd_restart
+ ;;
+*)
+ echo "usage $0 start|stop|restart"
+esac