~ubuntu-branches/ubuntu/saucy/fail2ban/saucy

« back to all changes in this revision

Viewing changes to files/solaris-svc-fail2ban

  • Committer: Package Import Robot
  • Author(s): Yaroslav Halchenko
  • Date: 2013-05-13 11:58:56 UTC
  • mfrom: (1.1.15) (10.2.13 sid)
  • Revision ID: package-import@ubuntu.com-20130513115856-x7six9p53qcie0vl
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:
17
17
 
18
18
ENV="/usr/bin/env -i LANG=C PATH=/usr/local/bin:/usr/bin:/bin:/opt/sfw/bin:/usr/sfw/bin"
19
19
 
 
20
# get socket/pid conf and check dir exists
 
21
# sock and pid default dirs are currently the same
 
22
# mkdir if it doesn't exist
 
23
SOCK_FILE=$(sed "/^\#/d" "$F2B_CONF" | grep "socket"  | tail -1 | cut -d "=" -f2-)
 
24
SOCK_DIR=$(dirname $SOCK_FILE)
 
25
if [ -n "$SOCK_DIR" ]; then
 
26
        if [ ! -d "$SOCK_DIR" ]; then
 
27
                mkdir "$SOCK_DIR" || exit 1
 
28
        fi
 
29
fi
 
30
 
20
31
case $1 in
21
32
        start)
 
33
                # remove any lingering sockets
 
34
                # don't quote the var for the -e test
 
35
                if [ -n "$SOCK_FILE" ]; then
 
36
                        if [ -e $SOCK_FILE ]; then
 
37
                                rm -f $SOCK_FILE || exit 1
 
38
                        fi
 
39
                fi
22
40
                [ -f /etc/fail2ban.conf ] || touch /etc/fail2ban.conf
23
41
                echo "Starting fail2ban-server with $F2B_CONF"
24
42
                eval $ENV /usr/local/bin/fail2ban-client start &