#!/nix/store/bf1ypxhl9j3p5q3w1jqg89l3zc7c5ns0-bash-5.2p37/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
