runit-service-scripts/usr/lib/runit/sv/auditctl/finish
2024-04-06 19:36:11 +03:00

14 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