- 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
0.x
Cyril Jaquier 2006-12-03 21:58:48 +00:00
parent c27ef35b90
commit 159ecbc567
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ getpid() {
start() { start() {
echo -n $"Starting fail2ban: " echo -n $"Starting fail2ban: "
getpid getpid
if [ -z "$pid"]; then if [ -z "$pid" ]; then
$FAIL2BAN start > /dev/null $FAIL2BAN start > /dev/null
RETVAL=$? RETVAL=$?
fi fi
@ -77,8 +77,8 @@ case "$1" in
fi fi
;; ;;
restart) restart)
stop
start start
stop
;; ;;
*) *)
echo $"Usage: $0 {start|stop|status|restart}" echo $"Usage: $0 {start|stop|status|restart}"