From owner-freebsd-bugs Thu Jul 6 15:28:48 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id PAA05728 for bugs-outgoing; Thu, 6 Jul 1995 15:28:48 -0700 Received: from ibp.ibp.fr (ibp.ibp.fr [132.227.60.30]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id PAA05720 for ; Thu, 6 Jul 1995 15:28:40 -0700 Received: from blaise.ibp.fr (blaise.ibp.fr [132.227.60.1]) by ibp.ibp.fr (8.6.12/jtpda-5.0) with ESMTP id AAA19590 ; Fri, 7 Jul 1995 00:28:36 +0200 Received: from (roberto@localhost) by blaise.ibp.fr (8.6.12/jtpda-5.0) id AAA06207 ; Fri, 7 Jul 1995 00:28:35 +0200 From: roberto@blaise.ibp.fr (Ollivier Robert) Message-Id: <199507062228.AAA06207@blaise.ibp.fr> Subject: Re: misc/595: /var/cron/log doesn't rotate cleanly To: alan@beandorf.epilogue.com Date: Fri, 7 Jul 1995 00:28:34 +0200 (MET DST) Cc: freebsd-bugs@freefall.cdrom.com In-Reply-To: <199507061940.MAA27613@freefall.cdrom.com> from "Alan Bawden" at Jul 6, 95 12:40:01 pm X-Operating-System: FreeBSD BUILT-19950501 ctm#617 X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1132 Sender: bugs-owner@FreeBSD.org Precedence: bulk > 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'. > That's probably why I made the following patch to pathnames.h a good while ago and I could not remember why... With this patch, cron uses only syslg and you can rotate it... --- pathnames.h.orig Sat Aug 27 15:43:04 1994 +++ pathnames.h Tue Jan 3 19:43:53 1995 @@ -49,7 +49,7 @@ */ #define ALLOW_FILE "allow" /*-*/ #define DENY_FILE "deny" /*-*/ -#define LOG_FILE "log" /*-*/ +/*#define LOG_FILE "log"*/ /*-*/ /* where should the daemon stick its PID? */ -- Ollivier ROBERT -=- The daemon is FREE! -=- roberto@FreeBSD.ORG FreeBSD keltia 2.0-BUILT-19950503 #3: Wed May 3 19:53:04 MET DST 1995