#!/bin/sh

set -e

# Give firewalld some time to settle
sleep 15

if ! systemctl -q is-active firewalld ; then
	journalctl -u firewalld
	exit 1
fi

systemctl status firewalld

# We don't want any errors in the log
if systemctl status firewalld | grep -q "ERROR" ; then
	exit 1
fi
