Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Jul 1995 00:28:34 +0200 (MET DST)
From:      roberto@blaise.ibp.fr (Ollivier Robert)
To:        alan@beandorf.epilogue.com
Cc:        freebsd-bugs@freefall.cdrom.com
Subject:   Re: misc/595: /var/cron/log doesn't rotate cleanly
Message-ID:  <199507062228.AAA06207@blaise.ibp.fr>
In-Reply-To: <199507061940.MAA27613@freefall.cdrom.com> from "Alan Bawden" at Jul 6, 95 12:40:01 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 	  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199507062228.AAA06207>