sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Jaka Kranjc (c44c7803bbfff1c50f8df5179c3342aec09f57fb)
- From: Jaka Kranjc <scm AT mail.sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (c44c7803bbfff1c50f8df5179c3342aec09f57fb)
- Date: Mon, 19 Feb 2007 14:10:51 -0600
GIT changes to master grimoire by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:
net/fail2ban/HISTORY | 1 +
net/fail2ban/init.d/fail2ban | 20 ++++++++++++++++----
2 files changed, 17 insertions(+), 4 deletions(-)
New commits:
commit c44c7803bbfff1c50f8df5179c3342aec09f57fb
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
fail2ban init fixes
diff --git a/net/fail2ban/HISTORY b/net/fail2ban/HISTORY
index 976f59c..3123a44 100644
--- a/net/fail2ban/HISTORY
+++ b/net/fail2ban/HISTORY
@@ -1,4 +1,5 @@
2007-02-19 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * init.d: fix program name and add more options
* INSTALL: simplify
* DETAILS: updated spell to 0.7.7
diff --git a/net/fail2ban/init.d/fail2ban b/net/fail2ban/init.d/fail2ban
index f3a4b64..5f2a910 100755
--- a/net/fail2ban/init.d/fail2ban
+++ b/net/fail2ban/init.d/fail2ban
@@ -1,6 +1,6 @@
#!/bin/bash
-PROGRAM=/usr/bin/fail2ban
+PROGRAM=/usr/bin/fail2ban-client
RUNLEVEL=3
NEEDS="+network +remote_fs"
@@ -8,17 +8,29 @@ NEEDS="+network +remote_fs"
start() {
echo "Starting Fail2Ban"
- $PROGRAM -b > /dev/null 2>&1
+ $PROGRAM start > /dev/null 2>&1
evaluate_retval
}
stop() {
echo "Stopping Fail2Ban"
- $PROGRAM -k > /dev/null 2>&1
+ $PROGRAM stop > /dev/null 2>&1
+ evaluate_retval
+}
+
+status() {
+ echo "Checking Fail2Ban status"
+ $PROGRAM status > /dev/null 2>&1
+ evaluate_retval
+}
+
+reload() {
+ echo "Reloading Fail2Ban configuration"
+ $PROGRAM reload > /dev/null 2>&1
evaluate_retval
}
usage()
{
- echo "Usage: $0 {start|stop|restart}"
+ echo "Usage: $0 {start|stop|restart|status|reload}"
}
- [SM-Commit] GIT changes to master grimoire by Jaka Kranjc (c44c7803bbfff1c50f8df5179c3342aec09f57fb), Jaka Kranjc, 02/19/2007
Archive powered by MHonArc 2.6.24.