cvs commit: src/etc/rc.d auditd

Andrey Chernov ache at FreeBSD.ORG
Sun Sep 24 11:37:30 PDT 2006

On Sun, Sep 24, 2006 at 05:31:04PM +0000, 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.

You can't be sure about 1 second (or any N seconds) and should choouse 
another method like pid file or pipe file or some sysctl value presence 
checking loop.


More information about the cvs-src mailing list