Prevents systemd to reject a restart command on batch inserts, scripting, backup restore etc (cherry picked from commit 602766b425b8ac28aff17b0b1107e691a0c661e9)
@@ -50,6 +50,7 @@ elif [ -z "$force" -o "$force" = "no" ] && [ \
"$service" = "fail2ban" ]; then
systemctl reload-or-restart $service > /dev/null 2>&1
else
+ systemctl reset-failed $service > /dev/null 2>&1
systemctl restart $service > /dev/null 2>&1
fi