From 159ecbc5671766e8bd2c887e9161ff7fabd52085 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Sun, 3 Dec 2006 21:58:48 +0000 Subject: [PATCH] - Fixed RedHat init script. Thanks to Justin Shore git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@476 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- files/redhat-initd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/redhat-initd b/files/redhat-initd index 0dfd0d2c..5909efeb 100755 --- a/files/redhat-initd +++ b/files/redhat-initd @@ -27,7 +27,7 @@ getpid() { start() { echo -n $"Starting fail2ban: " getpid - if [ -z "$pid"]; then + if [ -z "$pid" ]; then $FAIL2BAN start > /dev/null RETVAL=$? fi @@ -77,8 +77,8 @@ case "$1" in fi ;; restart) + stop start - stop ;; *) echo $"Usage: $0 {start|stop|status|restart}"