cvs commit: src/etc/rc.d auditd
Doug Barton
dougb at FreeBSD.org
Wed Dec 6 15:25:18 PST 2006
Catching up on some old mail ...
Robert Watson wrote:
> rwatson 2006-09-24 17:31:04 UTC
>
> FreeBSD src repository
>
> Modified files:
> etc/rc.d auditd
> Log:
> 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
>
> Revision Changes Path
> 1.3 +1 -0 src/etc/rc.d/auditd
>
> http://www.FreeBSD.org/cgi/cvsweb.cgi/src/etc/rc.d/auditd.diff?&r1=1.2&r2=1.3&f=h
Perhaps a better change would be:
/usr/sbin/audit -t
while : ; do
if <something that indicates audit is not dead yet>; then
echo 'Waiting for the audit system to terminate'
sleep 1
else
break
fi
done
hth,
Doug
--
This .signature sanitized for your protection
More information about the cvs-src
mailing list