void-packages/srcpkgs/audit/files/auditctl/finish
2018-09-21 22:23:14 +02:00

13 lines
250 B
Bash
Executable file

#!/bin/sh -e
# Remove watches so shutdown works cleanly
test -f /etc/audit/audit-stop.rules || exit 0
test ! -r ./conf || . ./conf
case "$AUDITD_CLEAN_STOP" in
no|NO) exit 0 ;;
*) ;;
esac
exec auditctl -R /etc/audit/audit-stop.rules >/dev/null