3 # chkconfig: 2345 56 25
4 # description: Fprobe-ulog initscript
9 . /etc/rc.d/init.d/functions
13 pidfile=/var/run/$PROC.pid
16 pid=`cat $pidfile 2>/dev/null`
18 # this eliminates a race condition between checking existence of pidfile
19 # and reading its value
21 [ -n "$pid" -a -d /proc/$pid ]
26 echo -n "starting $PROC:"
27 pid=`cat $pidfile 2>/dev/null`
28 if [ -n "$pid" ]; then
29 # check whether process really exists
30 # yes - don't try to start
31 [ -d /proc/$pid ] && action "already running" /bin/true && exit 1
33 # no - PID file is stale
37 /sbin/fprobe-ulog -M -e 3600 -d 3600 -E 60 -T 168 -f pf2 -q 1000 -s 30 -D 250000
41 check_status && touch /var/lock/subsys/$PROC || cmd=failure
47 echo -n "shutting down $PROC: "
52 [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PROC
62 check_status && echo 'running' && exit 0 || \
63 echo 'not running' && exit 1
76 echo "Usage: $0 {start|stop|restart|status}"