void-packages/srcpkgs/audit/files/auditctl/run

14 lines
270 B
Bash
Executable File

#!/bin/sh -e
exec 2>&1
test ! -r ./conf || . ./conf
case "$USE_AUGENRULES" in
no|NO) ;;
*) test ! -d /etc/audit/rules.d || augenrules >/dev/null ;;
esac
test ! -f /etc/audit/audit.rules || auditctl -R /etc/audit/audit.rules >/dev/null
exec chpst -b auditctl pause