Snort mailing list archives

Re: How to find Snort pid for log rotate script


From: Erek Adams <erek () theadamsfamily net>
Date: Sun, 28 Oct 2001 10:14:15 -0800 (PST)

On Sun, 28 Oct 2001, James wrote:

[...snip...]

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 get
the pid currently used by snort. I'm running RH 7.1.

ps -ef | grep snort | grep -v grep |awk '{print $2}'

should work fine.  Of course change the ps options and the grep strings to
work on your system.

Hope that helps.

-----
Erek Adams
Nifty-Type-Guy
TheAdamsFamily.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: