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

13 lines
260 B
Bash
Executable File

#!/bin/sh -e
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