Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* Added reload/force-reload actions to init script

* Adjusted jail.conf a bit
  • Loading branch information...
commit b457f61e74213c778969a2265f348b6fcb28ca54 1 parent 2e568c0
@yarikoptic yarikoptic authored
Showing with 27 additions and 5 deletions.
  1. +7 −0 debian/changelog
  2. +14 −0 debian/fail2ban.init
  3. +6 −5 debian/jail.conf
View
7 debian/changelog
@@ -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
View
14 debian/fail2ban.init
@@ -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
View
11 debian/jail.conf
@@ -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]
+# 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
Please sign in to comment.
Something went wrong with that request. Please try again.