#!/usr/bin/sh
# Helper script to provide legacy auditd service options not
# directly supported by systemd.

state=$(systemctl status auditd | awk '/Active:/ { print $2 }')
if [ "$state" = "active" ] ; then
	/sbin/auditctl --signal stop
	/bin/systemctl start auditd
	RETVAL="$?"
	exit $RETVAL
fi
exit 0
