From owner-freebsd-questions Sun Dec 31 21:38:48 2000 From owner-freebsd-questions@FreeBSD.ORG Sun Dec 31 21:38:46 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from Terry.Dorm8.NCTU.edu.tw (Terry.Dorm8.NCTU.edu.tw [140.113.93.99]) by hub.freebsd.org (Postfix) with ESMTP id 16ACF37B400 for ; Sun, 31 Dec 2000 21:38:33 -0800 (PST) Received: (from ijliao@localhost) by Terry.Dorm8.NCTU.edu.tw (8.11.1/8.11.1) id f015cqd79777; Mon, 1 Jan 2001 13:38:53 +0800 (CST) (envelope-from ijliao) Date: Mon, 1 Jan 2001 13:38:52 +0800 From: Ying-Chieh Liao To: Jorge Biquez Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Newsyslog for rotating APACHE logs Message-ID: <20010101133852.A79689@terry.dorm8.nctu.edu.tw> References: <5.0.2.1.2.20001231153034.01c780c0@intranet.com.mx> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i In-Reply-To: =?big5?Q?=3C5=2E0=2E2=2E1=2E2=2E20001231153034=2E01c780c0=40intranet=2Ec?= =?big5?Q?om=2Emx=3E=3B_from_jbiquez=40icsmx=2Ecom_on_=A4=E9_=2C__12_31?= =?big5?Q?=2C_2000_at_03:38:30=A4U=A4=C8_-0600?= Sender: ijliao@Terry.Dorm8.NCTU.edu.tw Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On ¤é , 12 31, 2000 at 15:38:30 -0600, Jorge Biquez wrote: > 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, why not use newsyslog.conf: /usr/home/sites/logsite01txt 664 9 * 1503 B /path/to/httpd.pid and you dont have to add "killall -HUP httpd" in your crontab -- The sooner you start to code, the longer the program will take. --- Roy Carlson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message