Snort mailing list archives

Re: Prevent Snort from starting a new instance if one already there


From: Scott Nursten <scottn () s2s ltd uk>
Date: Wed, 18 Sep 2002 12:18:40 +0100

Snort writes a pid file to /var/run/snort_xxxx.pid where xxxx is the
interface name, so...

if [ ! -f "/var/run/snort_${if}.pid" ]; then
    snort -I ${if} /etc/snort/snort.${if}.conf
fi

Kind Regards, 

-- 
Scott Nursten
--------------------------
S2S Consultants
T: 01444 232 742
F: 01444 232 061
W: http://s2s.ltd.uk
E: scottn () s2s ltd uk
--------------------------



-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
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: