1#!/bin/sh 2#
| 1#!/bin/sh 2#
|
3# $FreeBSD: head/etc/rc.d/auditd 155209 2006-02-02 10:02:55Z rwatson $
| 3# $FreeBSD: head/etc/rc.d/auditd 159351 2006-06-06 17:22:55Z trhodes $
|
4# 5# Start up for the Audit daemon. 6# 7 8# PROVIDE: auditd 9# REQUIRE: syslogd 10# BEFORE: DAEMON
| 4# 5# Start up for the Audit daemon. 6# 7 8# PROVIDE: auditd 9# REQUIRE: syslogd 10# BEFORE: DAEMON
|
| 11# KEYWORD: shutdown
|
11 12. /etc/rc.subr 13 14name="auditd" 15stop_cmd="auditd_stop" 16command="/usr/sbin/${name}" 17rcvar="auditd_enable" 18command_args="${auditd_flags}" 19required_files="/etc/security/audit_class /etc/security/audit_control 20 /etc/security/audit_event /etc/security/audit_user 21 /etc/security/audit_warn" 22 23auditd_stop() 24{ 25
| 12 13. /etc/rc.subr 14 15name="auditd" 16stop_cmd="auditd_stop" 17command="/usr/sbin/${name}" 18rcvar="auditd_enable" 19command_args="${auditd_flags}" 20required_files="/etc/security/audit_class /etc/security/audit_control 21 /etc/security/audit_event /etc/security/audit_user 22 /etc/security/audit_warn" 23 24auditd_stop() 25{ 26
|
26 if [ -f /var/run/auditd.pid ]; then 27 /usr/sbin/audit -t 28 else 29 echo "The audit daemon is not running"; 30 fi
| 27 /usr/sbin/audit -t
|
31} 32 33load_rc_config $name 34run_rc_command "$1"
| 28} 29 30load_rc_config $name 31run_rc_command "$1"
|