mirror of https://github.com/fail2ban/fail2ban
Merge branch 'debian' into build
* debian: BF: Assure that /var/run/fail2ban exists upon start (LP: #222804, #223706)debian-releases/squeeze
commit
db62370cea
|
@ -100,6 +100,9 @@ do_start()
|
|||
DAEMON_ARGS="$DAEMON_ARGS -x"
|
||||
fi
|
||||
|
||||
# Assure that /var/run/fail2ban exists
|
||||
[ -d /var/run/fail2ban ] || mkdir -p /var/run/fail2ban
|
||||
|
||||
start-stop-daemon --start --quiet --chuid root --exec $DAEMON -- \
|
||||
$DAEMON_ARGS start > /dev/null\
|
||||
|| return 2
|
||||
|
|
Loading…
Reference in New Issue