aboutsummaryrefslogtreecommitdiff
path: root/libexec/rc/rc.d/auditd
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2018-10-17 16:49:11 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2018-10-17 16:49:11 +0000
commit0696600c41600d80bcd993bfd8e675d0ae6951fe (patch)
tree45a1b1b869fe29f26dc2cb4978b509ba9a74e706 /libexec/rc/rc.d/auditd
parent6f65800cbbb453c18a098f0e14bff8dc5818aa93 (diff)
downloadsrc-0696600c41600d80bcd993bfd8e675d0ae6951fe.tar.gz
src-0696600c41600d80bcd993bfd8e675d0ae6951fe.zip
Notes
Diffstat (limited to 'libexec/rc/rc.d/auditd')
-rwxr-xr-xlibexec/rc/rc.d/auditd33
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"