From alan@beandorf.epilogue.com  Thu Jul  6 12:30:48 1995
Received: from beandorf.epilogue.com (beandorf.epilogue.com [128.224.1.153])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id MAA27412
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 6 Jul 1995 12:30:45 -0700
Received: (from alan@localhost) by beandorf.epilogue.com (8.6.9/8.6.9) id PAA01268; Thu, 6 Jul 1995 15:30:41 -0400
Message-Id: <199507061930.PAA01268@beandorf.epilogue.com>
Date: Thu, 6 Jul 1995 15:30:41 -0400
From: Alan Bawden <alan@beandorf.epilogue.com>
Reply-To: alan@beandorf.epilogue.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: /var/cron/log doesn't rotate cleanly
X-Send-Pr-Version: 3.2

>Number:         595
>Category:       misc
>Synopsis:       /var/cron/log doesn't rotate cleanly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul  6 12:40:00 1995
>Closed-Date:    Thu Jul 6 15:47:49 PDT 1995
>Last-Modified:
>Originator:     Alan Bawden
>Release:        FreeBSD 2.0-RELEASE i386
>Organization:
ITS Preservation Society
>Environment:

	???

>Description:

	There are two different kinds of lines added to /var/cron/log:

	  root (06/27-13:15:01-241) CMD (/usr/libexec/atrun)
	  Jun 27 13:15:01 beandorf CRON[241]: (root) CMD (/usr/libexec/atrun) 

	The second line is generated by syslogd.  I don't know where the
	first line comes from, probably cron itself.  If you rotate the
	logs by renaming log -> log.0 -> log.1 -> ..., and then send a
	SIGHUP to syslogd, the syslogd lines will start to accumulate in
	the new file, but the other lines will continue to accumulate in
	the file now named `log.0'.

	This sequence of events usually happens after /etc/weekly runs at
	3:30 AM Saturday (which does the renaming) followed by /etc/daily
	at 2:00 AM Sunday (which sends the SIGHUP).

	These logs would be much more readable if all the information they
	contained always accumulated at the end of the same file...

>How-To-Repeat:

	Take a look at the cron logs from any plain FreeBSD 2.0 machine
	just after the daily runs at 2 AM Sunday.

>Fix:
	
	I have no idea.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: ache 
State-Changed-When: Thu Jul 6 15:47:49 PDT 1995 
State-Changed-Why:  
Fixed in cron/pathnames.h v1.2 
>Unformatted:



