#!/bin/sh set -e # Restart fail2ban if needed [ "$(systemctl is-active fail2ban.service)" = 'active' ] && fail2ban-client reload --restart exit 0