#!/usr/bin/bash

if [[ -e /etc/httpd/enable.reload.by.cronjob && -e /run/httpd/need.reload ]]; then
	rm -f /run/httpd/need.reload
	if /usr/bin/systemctl -q is-active httpd.service; then
		/usr/bin/systemctl kill --signal=SIGUSR1 --kill-who=main httpd.service
	fi
else
	rm -f /run/httpd/need.reload
fi
exit 0
