]> git.saurik.com Git - apple/system_cmds.git/blob - auditd.tproj/rc.audit
system_cmds-336.23.tar.gz
[apple/system_cmds.git] / auditd.tproj / rc.audit
1 ##
2 # Startup script for Common Criteria Auditing function.
3 ##
4 # Copyright 2004 Apple Computer, Inc.
5 ##
6
7 . /etc/rc.common
8
9 ##
10 # Start the audit daemon (if present)
11 ##
12 if [ "${AUDIT:=-NO-}" == "-YES-" ]; then
13 if [ -f /usr/sbin/auditd ]; then
14 /usr/sbin/auditd
15 fi
16 elif [ "${AUDIT:=-NO-}" == "-FAILSTOP-" ]; then
17 if [ -f /usr/sbin/auditd ]; then
18 /usr/sbin/auditd -s
19 fi
20 elif [ "${AUDIT:=-NO-}" == "-FAILHALT-" ]; then
21 if [ -f /usr/sbin/auditd ]; then
22 /usr/sbin/auditd -h
23 fi
24
25 fi