From: <los...@us...> - 2007-07-11 22:12:46
|
Revision: 599 http://svn.sourceforge.net/fail2ban/?rev=599&view=rev Author: lostcontrol Date: 2007-07-11 15:12:45 -0700 (Wed, 11 Jul 2007) Log Message: ----------- - Tightening up the pid check in redhat-initd. Thanks to David Nutter Modified Paths: -------------- branches/FAIL2BAN-0_8/CHANGELOG branches/FAIL2BAN-0_8/files/redhat-initd Modified: branches/FAIL2BAN-0_8/CHANGELOG =================================================================== --- branches/FAIL2BAN-0_8/CHANGELOG 2007-07-10 20:24:44 UTC (rev 598) +++ branches/FAIL2BAN-0_8/CHANGELOG 2007-07-11 22:12:45 UTC (rev 599) @@ -18,6 +18,8 @@ - Added "ignoreregex" support to fail2ban-regex - Updated suse-initd and added it to MANIFEST. Thanks to Christian Rauch +- Tightening up the pid check in redhat-initd. Thanks to + David Nutter ver. 0.8.0 (2007/05/03) - stable ---------- Modified: branches/FAIL2BAN-0_8/files/redhat-initd =================================================================== --- branches/FAIL2BAN-0_8/files/redhat-initd 2007-07-10 20:24:44 UTC (rev 598) +++ branches/FAIL2BAN-0_8/files/redhat-initd 2007-07-11 22:12:45 UTC (rev 599) @@ -20,7 +20,7 @@ RETVAL=0 getpid() { - pid=`ps -ef | grep fail2ban-|grep -v grep|awk '{print $2}'` + pid=`ps -eo pid,comm | grep fail2ban- | awk '{ print $1 }'` } start() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |