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() {
|
||||
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)
|
||||
start
|
||||
stop
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {start|stop|status|restart}"
|
||||
|
|
Loading…
Reference in New Issue