From mboxrd@z Thu Jan 1 00:00:00 1970 From: LC Bruzenak Subject: audit rotate question Date: Wed, 20 May 2009 13:37:01 -0500 Message-ID: <1242844621.6546.149.camel@homeserver> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n4KIbIUC026538 for ; Wed, 20 May 2009 14:37:18 -0400 Received: from mail.magitekltd.com (rrcs-24-242-137-197.sw.biz.rr.com [24.242.137.197]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n4KIb2HP009560 for ; Wed, 20 May 2009 14:37:03 -0400 Received: from [24.242.137.194] (helo=[192.168.30.40]) by mail.magitekltd.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1M6qeH-00012A-HI for linux-audit@redhat.com; Wed, 20 May 2009 13:36:17 -0500 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Linux Audit List-Id: linux-audit@redhat.com If I do a "service auditd rotate" it just sends the auditd the USR1 signal which means "start the rotation". On a slow/burdened machine with many files this is not immediate. I am trying to run a cron job which will : mkdir /var/log/audit-archive/ service auditd rotate mv /var/log/audit/audit.log.* /var/log/audit-archive/ But the files listed are not through rotating so it has issues (file not found, leaves behind the last one rotated - audit.log.1, etc.). How can I tell when the rotate is complete so I can move the files out? I'm sure there is a simple way but I cannot see it. Thx, LCB. -- LC (Lenny) Bruzenak lenny@magitekltd.com