mirror of https://github.com/fail2ban/fail2ban
- Fixed RedHat init script. Thanks to Justin Shore
git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/trunk@476 a942ae1a-1317-0410-a47c-b1dcaea8d6050.x
parent
c27ef35b90
commit
159ecbc567
|
@ -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}"
|
||||||
|
|
Loading…
Reference in New Issue