2006-02-02 10:02:55 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# Start up for the Audit daemon.
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: auditd
|
|
|
|
# REQUIRE: syslogd
|
|
|
|
# BEFORE: DAEMON
|
2012-01-06 14:00:31 +00:00
|
|
|
# KEYWORD: nojail shutdown
|
2006-02-02 10:02:55 +00:00
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="auditd"
|
|
|
|
stop_cmd="auditd_stop"
|
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
rcvar="auditd_enable"
|
|
|
|
command_args="${auditd_flags}"
|
|
|
|
required_files="/etc/security/audit_class /etc/security/audit_control
|
|
|
|
/etc/security/audit_event /etc/security/audit_user
|
|
|
|
/etc/security/audit_warn"
|
|
|
|
|
|
|
|
auditd_stop()
|
|
|
|
{
|
|
|
|
|
2006-06-06 17:22:55 +00:00
|
|
|
/usr/sbin/audit -t
|
2006-09-24 17:31:04 +00:00
|
|
|
sleep 1
|
2006-02-02 10:02:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|