~ubuntu-branches/ubuntu/vivid/fail2ban/vivid

« back to all changes in this revision

Viewing changes to files/ipmasq-ZZZzzz|fail2ban.rul

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-05-13 11:58:56 UTC
  • mfrom: (1.2.6) (11.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20130513115856-r1wwsd58ajx2ub5o
Tags: 0.8.9-1
* New upstream release
  - significant improvements in documentation (Closes: #400416)
  - roundcube auth filter (Closes: #699442)
  - enforces C locale for dates (Closes: #686341)
  - provides bash_completion.d/fail2ban
* debian/jail.conf:
  - added findtime and documentation on those basic options from jail.conf
    (Closes: #704568)
  - added new sample jails definitions for ssh-route, ssh-iptables-ipset{4,6},
    roundcube-auth, sogo-auth, mysqld-auth
* debian/control:
  - suggest system-log-daemon (Closes: #691001)
  - boost policy compliance to 3.9.4
* debian/rules:
  - run fail2ban's unittests at build time but ignore the failures
    (there are still some known issues to fix up to guarantee robust testing
    in clean chroots etc).
    Only pyinotify was added to build-depends since gamin might still be
    buggy on older releases and get stuck, which would complicate
    backporting

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
#
3
 
# ZZZzzz|fail2ban.rul
4
 
#
5
 
# Ultima modifica: 20060112 <Nauta@G-B.it> Creazione
6
 
# Ultima modifica: 20071205 <Nauta@G-B.it> Verifica sia in esecuzione
7
 
#
8
 
# Riconfigura le regole di filtraggio relative a fail2ban alla fine
9
 
# dell'inizializzazione delle regole.
10
 
# Solo all'avvio del sistema mostra la (ri)esecuzione dello script
11
 
 
12
 
_NAME=fail2ban
13
 
_INITSCRIPT=/etc/init.d/$_NAME
14
 
_CONFIG="/etc/$_NAME/$_NAME.local /etc/$_NAME/$_NAME.conf"
15
 
 
16
 
if [ -s $_INITSCRIPT ]; then
17
 
  SOCKFILE=`sed -n -e '/^[^#]*socket\s*=/{
18
 
        s/.*socket\s*=\s*\(\S\+\).*/\1/p;q}' $_CONFIG 2>/dev/null`
19
 
  [ -z "$SOCKFILE" ] && SOCKFILE="/tmp/$_NAME.sock"
20
 
  if [ -S "$SOCKFILE" ]; then # Is daemon running ?
21
 
    if [ "$SHOWRULES" = "yes" ]; then
22
 
      echo "#: Reinitializing $_NAME"
23
 
      echo $_INITSCRIPT force-reload
24
 
    else
25
 
      [ ! $runlevel ] && HIDEOUTPUT=true
26
 
    fi
27
 
    if [ "$NOACT" != "yes" ]; then
28
 
      eval $_INITSCRIPT force-reload ${HIDEOUTPUT:+\>/dev/null 2\>&1}
29
 
    fi
30
 
  fi # SOCKFILE is a socket
31
 
fi # _INITSCRIPT exist