# Start/stop/restart snort.
# 8/30/2007 - The snort_restart function wasn't working, but an investigation ferretted out the problem: the "sleep" parameter was adjusted from "1" to "5" to give the process time to stop before starting the snort process again.
# Start snort:
if [ -x /usr/local/bin/snort ]; then
echo "Starting snort daemon: /usr/local/bin/snort -devXz -c /home/snort/snort-188.8.131.52/snort.conf -i eth0"
/usr/local/bin/snort -devXz -c /home/snort/snort-184.108.40.206/snort.conf -i eth0 -D
# Stop snort:
echo "Stopping snort daemon"
# Restart snort:
case "$1" in
echo "usage $0 start|stop|restart"
Thursday, August 30, 2007
Posted: Snort init script
Here it is!