# 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-22.214.171.124/snort.conf -i eth0"
/usr/local/bin/snort -devXz -c /home/snort/snort-126.96.36.199/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!