#!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header: /home/cvsroot/gentoo-x86/net-analyzer/snort/files/snort.rc6,v 1.3 2003/02/14 22:58:13 vapier Exp $ depend() { need net } checkconfig() { if [ ! -e /etc/snort_inline/snort_inline.conf ] ; then eerror "You need an /etc/snort_inline/snort_inline.conf to run snort_inline" eerror "There is an example config in /etc/snort_inline/snort_inline.conf.distrib" return 1 fi } start() { checkconfig || return 1 ebegin "Starting snort_inline" start-stop-daemon --start --quiet --exec /usr/bin/snort_inline \ -- ${SNORT_OPTS} >/dev/null 2>&1 eend $? } stop() { ebegin "Stopping snort_inline" start-stop-daemon --stop --quiet --pidfile ${PIDFILE} #kill -9 `cat $PIDFILE` 2>&1 eend $? }