toolkit/func/core/pkg_auditd/00-install-auditd.sh
2021-07-04 23:50:25 -07:00

9 lines
343 B
Bash
Executable file

#!/bin/bash
r_log "auditd" "Install auditd (this should be available during minimal)"
p_installPackageNormal audit
r_log "auditd" "Ensure auditd is running and enabled"
# Ignore service cycler, auditd refuses manual stop
/usr/sbin/service auditd restart
sleep 2
/usr/bin/systemctl status auditd.service | grep -q "active"
r_checkExitStatus $?