void-packages/srcpkgs/audit/files/auditctl/run
classabbyamp 351646d5bd *: add exec 2>&1 to all existing services
except when it already exists, of course
2023-02-09 21:36:13 -05:00

13 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