summaryrefslogtreecommitdiff
path: root/community/ulogd/rc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-10 01:12:52 -0800
committerroot <root@rshg054.dnsready.net>2013-02-10 01:12:52 -0800
commit1bb2648cde916ac27d3dd75d7b64a4ddc89787b7 (patch)
tree016bfa1969323404c37dbef29cfc7242a5a8e9f3 /community/ulogd/rc
parente9c244cac8e5dc1c59c7e8b7bc885fef04224b70 (diff)
Sun Feb 10 01:12:35 PST 2013
Diffstat (limited to 'community/ulogd/rc')
-rw-r--r--community/ulogd/rc54
1 files changed, 0 insertions, 54 deletions
diff --git a/community/ulogd/rc b/community/ulogd/rc
deleted file mode 100644
index 83f0550cc..000000000
--- a/community/ulogd/rc
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
- pidof /usr/sbin/ulogd
-}
-
-case "$1" in
- start)
- stat_busy "Starting ulogd daemon"
-
- [ -f /var/run/ulog.pid ] && rm -f /var/run/ulog.pid
- PID=`get_pid`
- if [ -z "$PID" ]; then
- /usr/sbin/ulogd -d &>/dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- echo `get_pid` > /var/run/ulogd.pid
- add_daemon ulogd
- stat_done
- fi
- else
- stat_fail
- exit 1
- fi
- ;;
-
- stop)
- stat_busy "Stopping ulog daemon"
- PID=`get_pid`
- [ ! -z "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- exit 1
- else
- rm -f /var/run/ulogd.pid &> /dev/null
- rm_daemon ulogd
- stat_done
- fi
- ;;
-
- restart)
- $0 stop
- sleep 3
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0