Sync to p4:
o Add shutdown KEYWORD; o Remove PID check; o Stop auditd with '-t' o General cleanup.
This commit is contained in:
parent
84ab930628
commit
b546d0bbc1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159351
@ -8,6 +8,7 @@
|
||||
# PROVIDE: auditd
|
||||
# REQUIRE: syslogd
|
||||
# BEFORE: DAEMON
|
||||
# KEYWORD: shutdown
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
@ -23,11 +24,7 @@ required_files="/etc/security/audit_class /etc/security/audit_control
|
||||
auditd_stop()
|
||||
{
|
||||
|
||||
if [ -f /var/run/auditd.pid ]; then
|
||||
/usr/sbin/audit -t
|
||||
else
|
||||
echo "The audit daemon is not running";
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
Loading…
Reference in New Issue
Block a user