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

Erek Adams erek at ...577...
Sun Oct 28 10:15:01 EST 2001


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





More information about the Snort-users mailing list