diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2018-10-17 16:49:11 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2018-10-17 16:49:11 +0000 |
commit | 0696600c41600d80bcd993bfd8e675d0ae6951fe (patch) | |
tree | 45a1b1b869fe29f26dc2cb4978b509ba9a74e706 /libexec/rc/rc.d/auditd | |
parent | 6f65800cbbb453c18a098f0e14bff8dc5818aa93 (diff) | |
download | src-0696600c41600d80bcd993bfd8e675d0ae6951fe.tar.gz src-0696600c41600d80bcd993bfd8e675d0ae6951fe.zip |
Notes
Diffstat (limited to 'libexec/rc/rc.d/auditd')
-rwxr-xr-x | libexec/rc/rc.d/auditd | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/libexec/rc/rc.d/auditd b/libexec/rc/rc.d/auditd new file mode 100755 index 000000000000..8e078ec4c856 --- /dev/null +++ b/libexec/rc/rc.d/auditd @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# Start up for the Audit daemon. +# + +# PROVIDE: auditd +# REQUIRE: syslogd +# BEFORE: DAEMON +# KEYWORD: nojail shutdown + +. /etc/rc.subr + +name="auditd" +desc="Audit daemon" +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() +{ + + /usr/sbin/audit -t + sleep 1 +} + +load_rc_config $name +run_rc_command "$1" |