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

Martijn Heemels martijn at ...1736...
Sun Oct 28 13:30:01 EST 2001


 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, James

I can think of two ways to find snort on redhat.
In a lot of the init scripts (/etc/init.d/) a function calles 'pidof'
is used to find the pid of a named proces in order to send it
signals... Check out the scripts for examples...
Otherwise, if you have only one snort proces use the killall command
(see: man killall)... for example, to tell inetd to reload it's
config:
	killall -HUP inetd


Hope this helps,
Martijn

> 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.
> 
> James
> 
> 
> 
> _________________________________________________________
> Do You Yahoo!?

no, should I? ;)

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBO9x4mxLMC0rbivl4EQIXTQCcDWbl4c6uTuu9mWHYL93yY4TuU+0AoM/O
xz1e+CjBdYyWJThSVOTdGTpN
=Gi54
-----END PGP SIGNATURE-----





More information about the Snort-users mailing list