From owner-cvs-src@FreeBSD.ORG Sun Sep 24 18:37:30 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.ORG Delivered-To: cvs-src@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A08716A403; Sun, 24 Sep 2006 18:37:30 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CD7D43D46; Sun, 24 Sep 2006 18:37:29 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.8/8.13.8) with ESMTP id k8OIbSPV007909; Sun, 24 Sep 2006 22:37:28 +0400 (MSD) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.8/8.13.8/Submit) id k8OIbRVx007908; Sun, 24 Sep 2006 22:37:27 +0400 (MSD) (envelope-from ache) Date: Sun, 24 Sep 2006 22:37:27 +0400 From: Andrey Chernov To: Robert Watson Message-ID: <20060924183727.GA7823@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Robert Watson , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200609241731.k8OHV5mZ053132@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200609241731.k8OHV5mZ053132@repoman.freebsd.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: cvs-src@FreeBSD.ORG, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc/rc.d auditd X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Sep 2006 18:37:30 -0000 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. -- http://ache.pp.ru/