From owner-freebsd-questions Sun Dec 31 13:40:36 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 13:40:34 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from intranet.com.mx (intranet.com.mx [200.33.246.7]) by hub.freebsd.org (Postfix) with ESMTP id 665DB37B400 for ; Sun, 31 Dec 2000 13:40:34 -0800 (PST) Received: from jbiquez.intranet.com.mx (200.33.246.115) by intranet.com.mx with ESMTP (Eudora Internet Mail Server 3.0) for ; Sun, 31 Dec 2000 15:40:30 -0600 Message-Id: <5.0.2.1.2.20001231153034.01c780c0@intranet.com.mx> X-Sender: jbiquez@intranet.com.mx X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sun, 31 Dec 2000 15:38:30 -0600 To: freebsd-questions@freebsd.org From: Jorge Biquez Subject: Newsyslog for rotating APACHE logs Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello all. I'm still on the rotation files. I wanted to try newsyslog before going for the scripts paths since seems could be simpler. This is what I have on the newsyslog.conf file: # logfilename owner.group mode count size time [ZB] [/pid_file] [sig_num] /var/log/maillog 664 7 * 24 Z /var/log/sendmail.st 664 10 * 168 B /usr/home/sites/logsite01txt 664 9 * 1503 B since I wanted that the file rotated at the 15:03 hours. On the contrab file I have this: # #minute hour mday month wday who command 04 15 * * * root newsyslog 05 15 * * * root killall -HUP httpd But it is not working. I checked the permission and that's not the problem. Any suggestions, comments or ideas?. Thanks in advance, JB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message