Snort mailing list archives
RE: Snort stopping after about 12 hours
From: Brian Youngstrom <briany () altavista net>
Date: Thu, 6 Dec 2001 10:58:17 -0800 (PST)
Does anyone have a script that could check if snort is running and if it is not start it. I would write one but I am not well versed in scripting.
Run this script from cron however often you like: ***BEGIN*** #!/bin/sh RV=`pidof snort` if [ $? -ne 0 ]; then echo "Snort is down as of `date`" /opt/bin/snort -c /opt/etc/snort/snort.conf -D -l /var/log/snort/ fi ***END*** Adjust paths/options as necessary. This has been working for me on a slackware system for several months now. Snort gets restarted, and you get an email letting you know when it is restarted. -- Brian Youngstrom briany () altavista net _______________________________________________ Snort-users mailing list Snort-users () lists sourceforge net Go to this URL to change user options or unsubscribe: https://lists.sourceforge.net/lists/listinfo/snort-users Snort-users list archive: http://www.geocrawler.com/redir-sf.php3?list=snort-users
Current thread:
- RE: Snort stopping after about 12 hours Wayne Ringling (Dec 05)
- RE: Snort stopping after about 12 hours Patrick S. Harper (Dec 06)
- Re: Snort stopping after about 12 hours Brian (Dec 06)
- RE: Snort stopping after about 12 hours Brian Youngstrom (Dec 06)
- RE: Snort stopping after about 12 hours Patrick S. Harper (Dec 06)