5 # chkconfig: 2345 91 91
6 # description: ulogd is the userland packect logger for iptables ULOG target.
8 # Source function library
9 . /etc/rc.d/init.d/functions
12 . /etc/sysconfig/network
14 [ -f /usr/sbin/ulogd ] || exit 0
17 if [ -f /etc/sysconfig/ulogd ] ; then
18 . /etc/sysconfig/ulogd
21 # See how we were called.
24 # Check if the service is already running?
25 if [ ! -f /var/lock/subsys/ulogd ]; then
29 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/ulogd
31 msg_already_running "ulogd"
35 if [ -f /var/lock/subsys/ulogd ]; then
38 rm -f /var/lock/subsys/ulogd >/dev/null 2>&1
52 if [ -f /var/lock/subsys/ulogd ]; then
71 msg_usage "$0 {start|stop|status|restart|reload|force-reload}"