summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlostcontrol <lostcontrol@a942ae1a-1317-0410-a47c-b1dcaea8d605>2007-07-11 22:12:45 +0000
committerlostcontrol <lostcontrol@a942ae1a-1317-0410-a47c-b1dcaea8d605>2007-07-11 22:12:45 +0000
commita127d89389a255c2b0b89046f60594c78f4833e9 (patch)
treec442ee5771f9908cd97ccc213982d697b583d911
parentad5e11f7c8d78fe9b06c06d707c9dcbf91b5595e (diff)
downloadfail2ban-a127d89389a255c2b0b89046f60594c78f4833e9.tar.gz
- Tightening up the pid check in redhat-initd. Thanks to David Nutter
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_8@599 a942ae1a-1317-0410-a47c-b1dcaea8d605
-rw-r--r--CHANGELOG2
-rwxr-xr-xfiles/redhat-initd2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index acf9f939..1cc72723 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -18,6 +18,8 @@ ver. 0.8.1 (2007/??/??) - stable
- 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
----------
diff --git a/files/redhat-initd b/files/redhat-initd
index 205294cf..529aef25 100755
--- a/files/redhat-initd
+++ b/files/redhat-initd
@@ -20,7 +20,7 @@ FAIL2BAN="/usr/bin/fail2ban-client"
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() {