diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-09-24 17:31:04 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-09-24 17:31:04 +0000 |
commit | 249296fc030a0e10cf06304f375791423ce6f381 (patch) | |
tree | 4407a2d3e8c6c01cc85af93afdf7165da6c509ed /etc/rc.d/auditd | |
parent | 3c7bafa636755b3cbf8190124a1dddcbf0954d80 (diff) | |
download | FreeBSD-src-249296fc030a0e10cf06304f375791423ce6f381.zip FreeBSD-src-249296fc030a0e10cf06304f375791423ce6f381.tar.gz |
Sleep for one second after calling audit -t to give the audit daemon a
chance to actually terminate the audit service and exit. Otherwise, on
an rc.d/auditd restart, the new audit daemon instance may try to start
auditing while the previous session is still running. Likewise, this
ensures a chance for auditd to terminate the audit trail at system
shutdown.
Perhaps more ideally, the script would wait synchronously for auditd to
exit rather than for an arbitrary but short period of time.
MFC after: 3 days
Obtained from: TrustedBSD Project
Diffstat (limited to 'etc/rc.d/auditd')
-rw-r--r-- | etc/rc.d/auditd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/rc.d/auditd b/etc/rc.d/auditd index 6f3ebd0..4d0760c 100644 --- a/etc/rc.d/auditd +++ b/etc/rc.d/auditd @@ -25,6 +25,7 @@ auditd_stop() { /usr/sbin/audit -t + sleep 1 } load_rc_config $name |