#!/bin/sh #FWINIT 60 . /etc/rc.conf case $1 in autostop) ;; autostart) test x"${snort:-NO}" = x"NO" && exit 0 exec sh $0 start ;; start) snort $snort_flags ;; stop) killall snort ;; *) echo "usage: $0 {start | stop | restart}" exit 1 esac exit $?