]> git.pld-linux.org Git - packages/fail2ban.git/commitdiff
- reload is now supported
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 10 Aug 2017 11:24:35 +0000 (13:24 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 10 Aug 2017 11:24:35 +0000 (13:24 +0200)
fail2ban.init

index a9c69e9379de3f158e37caa7985a913511a050c0..210f3ec00842ac3b6212b8b8701fe1cf1588d406 100644 (file)
@@ -55,6 +55,16 @@ stop() {
        fi
 }
 
+reload() {
+       if [ -f /var/lock/subsys/fail2ban ]; then
+               msg_reloading fail2ban
+               daemon --pidfile /var/run/fail2ban/fail2ban.pid /usr/bin/fail2ban-client reload
+       else
+               msg_not_running fail2ban
+       fi
+}
+
+
 condrestart() {
        if [ -f /var/lock/subsys/fail2ban ]; then
                stop
@@ -74,6 +84,9 @@ case "$1" in
   stop)
        stop
        ;;
+  reload)
+       reload
+       ;;
   restart)
        stop
        start
@@ -90,7 +103,7 @@ case "$1" in
        /usr/bin/fail2ban-client status
        ;;
   *)
-       msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
+       msg_usage "$0 {start|stop|reload|restart|try-restart|force-reload|status}"
        exit 3
        ;;
 esac
This page took 0.109977 seconds and 4 git commands to generate.