* Added reload/force-reload actions to init script

* Adjusted jail.conf a bit
debian-releases/etch debian/0.7.4-2
Yaroslav Halchenko 2006-11-06 14:23:58 +00:00
parent 2e568c08d6
commit b457f61e74
3 changed files with 27 additions and 5 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
fail2ban (0.7.4-2) experimental; urgency=low
* Added reload/force-reload actions to init script
* Adjusted jail.conf a bit
-- Yaroslav Halchenko <debian@onerussian.com> Mon, 6 Nov 2006 09:18:58 -0500
fail2ban (0.7.4-1) experimental; urgency=low
* New upstream release

14
debian/fail2ban.init vendored
View File

@ -116,6 +116,13 @@ do_stop()
return 0
}
#
# Function to reload configuration
#
do_reload() {
$DAEMON reload > /dev/null && return 0 || return 1
return 0
}
# yoh:
# shortcut function to don't duplicate case statements and to don't use
@ -162,6 +169,13 @@ case "$1" in
;;
esac
;;
reload|force-reload)
log_daemon_msg "Reloading $DESC" "$NAME"
do_reload
log_end_msg $?
;;
status)
log_daemon_msg "Status of $DESC"
do_status

9
debian/jail.conf vendored
View File

@ -4,7 +4,7 @@
# provided now under /usr/share/doc/fail2ban/examples/jail.conf
# for additional examples.
#
# To avoid merges during upgrades do not modify this file
# To avoid merges during upgrades DO NOT MODIFY THIS FILE
# and rather provide your changes in /etc/fail2ban/jail.local
#
# Author: Yaroslav O. Halchenko <debian@onerussian.com>
@ -37,13 +37,14 @@ destemail = root@localhost
action = iptables[name=%(__name__)s, port=%(port)s]
# Default action to take: ban & send an e-mail with whois report
# to the destemail
# to the destemail. Copy/paste+uncomment next 2 lines into jail.local
# to activate
#action = iptables[name=%(__name__)s, port=%(port)s]
# mail-whois[name=%(__name__)s, dest=%(destemail)s]
#
# Next jails corresponds to the standard configuration in Fail2ban 0.6.
# Please enable them by including
# Next jails corresponds to the standard configuration in Fail2ban 0.6
# which was shipped in Debian. Please enable them by including
#
# [SECTION_NAME]
# enabled = true