[Snort-users] How to find Snort pid for log rotate script
martijn at ...1736...
Sun Oct 28 13:30:01 EST 2001
-----BEGIN PGP SIGNED MESSAGE-----
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
killall -HUP inetd
Hope this helps,
> 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.
> Do You Yahoo!?
no, should I? ;)
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
-----END PGP SIGNATURE-----
More information about the Snort-users