Blame | Last modification | View Log | RSS feed
#!/bin/sh## System V init script for iptables logfile analyzer## (c) Thomas Vallaitis <bonewood@gmx.net>## pid isn't saved by iptables logfile analyzer (afaik)# we have two processes -> more difficult## Source function library.. /etc/rc.d/init.d/functionsPATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"LONGNAME="iptables logfile analyzer"NAME="iptablelog"DAEMON='/usr/local/sbin/feed_db.pl'set -e# Main Loopcase $1 instart)echo -n "Starting $LONGNAME: ";$DAEMON &echo $NAME;;;stop)echo -n "Stopping $LONGNAME: "daemon --stop --quiet --pidfile /var/run/$NAME.pid || truerm -f /var/run/$NAME.pidecho $NAME;;*)N=/etc/init.d/$NAMEecho "Usage: $N {start|stop}" >&2exit 1;;esacexit 0# EOF