[Snort-users] Re: How to find Snort pid for log rotate script

Chris Arnold chris.arnold at ...3942...
Mon Oct 29 08:49:04 EST 2001

Linux:  man killall
Solaris:  man pkill



From: "James" <the_saint_james at ...131...>
To: <snort-users at lists.sourceforge.net>
Date: Sun, 28 Oct 2001 10:47:41 -0700
Subject: [Snort-users] How to find Snort pid for log rotate script

I found a great script to do my log rotation; hacked away at it and it does
everything except stop snort. Here is what the shell script it trying to

# Kill and restart snort now that the log files are moved.
kill `cat /var/run/snort_fxp0.pid`

# Restart snort in the correct way for you

#/usr/local/bin/snort -i fxp0 -d -D -h homeiprange/28 -l /usr/snort/log \
# -c /usr/snort/etc/08292k.rules > /dev/null 2>&1


James here.....

Snort starts just fine using my "startsnort" script but cat
/var/run/snort_fxp0.pid does not pull a pid, as snort does not have one in
/var/run .  I've done some reading in man but cannot find an easy way to
the pid currently used by snort. I'm running RH 7.1.


Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Snort-users mailing list
Snort-users at lists.sourceforge.net
Go to this URL to change user options or unsubscribe:
Snort-users list archive:

More information about the Snort-users mailing list