#!/bin/bash # Restart fail2ban if needed [ "$(systemctl is-active fail2ban.service)" = inactive ] || fail2ban-client reload