This one's much better since no command line option will over ride what's in the config file:
--- snortd 2002-10-16 11:13:00.000000000 +0200 +++ snortd.oden 2002-10-16 15:09:52.000000000 +0200 @@ -27,8 +27,8 @@ if [ -x /usr/sbin/snort -a ! -e /var/lock/subsys/snort ]; then gprintf "Starting snort: " cd /var/log/snort - daemon /usr/sbin/snort -u snort -g snort -s -d -D \ - -i ${INTERFACE} -l /var/log/snort -c /etc/snort/snort.conf + daemon /usr/sbin/snort -u snort -g snort -D \ + -i ${INTERFACE} -c /etc/snort/snort.conf touch /var/lock/subsys/snort echo else @@ -49,8 +49,11 @@ status) status snort ;; + configtest) + /usr/sbin/snort -u snort -g snort -i ${INTERFACE} -c /etc/snort/snort.conf -v -T + ;; *) - gprintf "Usage: $0 {start|stop|restart|status}" + gprintf "Usage: $0 {start|stop|restart|status|configtest}" exit 1 esac Chears. -- Regards // Oden Eriksson - Deserve-IT Networks http://d-srv.com Check the "Modules For Apache2" status page at: http://d-srv.com/modules_for_apache2.html