From owner-freebsd-questions@FreeBSD.ORG Fri Jul 9 02:30:16 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48BBC16A4CE for ; Fri, 9 Jul 2004 02:30:16 +0000 (GMT) Received: from priv-edtnes27.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id E62EA43D1F for ; Fri, 9 Jul 2004 02:30:15 +0000 (GMT) (envelope-from graham.north@telus.net) Received: from phoenix ([142.173.17.246]) by priv-edtnes27.telusplanet.net (InterMail vM.6.01.03.02 201-2131-111-104-20040324) with ESMTP id <20040709023015.WMEH29210.priv-edtnes27.telusplanet.net@phoenix>; Thu, 8 Jul 2004 20:30:15 -0600 Message-ID: <002401c4655c$ecd47640$627ba8c0@phoenix> From: "Graham North" To: , "Matthew Seaman" References: <002201c45111$801acb30$627ba8c0@phoenix> <20040613090822.GB75168@happy-idiot-talk.infracaninophile.co.uk> <003901c45197$9feda640$627ba8c0@phoenix> <20040616103837.GC3094@happy-idiot-talk.infracaninophile.co.uk> Date: Thu, 8 Jul 2004 19:32:05 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0021_01C46522.40032D60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: robert@irrelevant.com cc: tim@typhoon.techvalley.ca cc: Matthew Seaman Subject: Apache log rotation problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 02:30:16 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0021_01C46522.40032D60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hello all: There has to be a simple fix to this problem - I am using newsyslog and cron to rotate my Apache logfiles. They get rotated and Apache keeps working however after a log rotation takes place Apache will not longer log my accesses. It does continue to serve pages but I need to do an apachectl restart in order for it to continue logging properly. newsyslog.conf and crontab files are attached for reference. Any help and suggestions greatly appreciated. Regards, Graham/ ------=_NextPart_000_0021_01C46522.40032D60 Content-Type: application/octet-stream; name="crontab" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="crontab" # /etc/crontab - root's crontab for FreeBSD=0A= #=0A= # $FreeBSD: src/etc/crontab,v 1.21.2.3 2000/12/08 10:56:07 obrien Exp $=0A= #=0A= SHELL=3D/bin/sh=0A= PATH=3D/etc:/bin:/sbin:/usr/bin:/usr/sbin=0A= HOME=3D/var/log=0A= #=0A= #minute hour mday month wday who command=0A= #=0A= */5 * * * * root /usr/libexec/atrun=0A= #=0A= # rotate log files every hour, if necessary=0A= 0 * * * * root newsyslog=0A= #=0A= # do daily/weekly/monthly maintenance=0A= 1 3 * * * root periodic daily=0A= 15 4 * * 6 root periodic weekly=0A= 30 5 1 * * root periodic monthly=0A= #=0A= # time zone change adjustment for wall cmos clock,=0A= # does nothing, if you have UTC cmos clock.=0A= # See adjkerntz(8) for details.=0A= 1,31 0-5 * * * root adjkerntz -a=0A= # sets the clock once every hour=0A= 01 * * * * root /usr/sbin/ntpdate time.nist.gov time.nrc.ca ntp.ubc.ca > = /dev/nul=0A= ------=_NextPart_000_0021_01C46522.40032D60 Content-Type: application/octet-stream; name="newsyslog.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="newsyslog.conf" # configuration file for newsyslog=0A= # $FreeBSD: src/etc/newsyslog.conf,v 1.25.2.10 2002/05/24 15:40:09 = gshapiro Exp $=0A= #=0A= # Note: some sites will want to select more restrictive protections than = the=0A= # defaults. In particular, it may be desirable to switch many of the 644=0A= # entries to 640 or 600. For example, some sites will consider the=0A= # contents of maillog, messages, and lpd-errs to be confidential. In the=0A= # future, these defaults may change to more conservative ones.=0A= #=0A= # logfilename [owner:group] mode count size when [ZJB] = [/pid_file] [sig_num]=0A= /var/log/cron 600 3 100 * Z=0A= /var/log/amd.log 644 7 100 * Z=0A= /var/log/auth.log 600 7 100 * Z=0A= # this is the new stuff=0A= /var/log/httpd-access.log 644 7 100 * =0A= /var/log/httpd-error.log 644 3 100 * Z=0A= /var/log/log.nmbd 600 2 100 * Z=0A= /var/log/log.smbd 600 2 100 * Z=0A= # finish new stuff=0A= =0A= /var/log/kerberos.log 600 7 100 * Z=0A= /var/log/lpd-errs 644 7 100 * Z=0A= /var/log/maillog 640 7 * @T00 Z=0A= /var/log/sendmail.st 640 10 * 168 B=0A= /var/log/messages 644 5 100 * Z=0A= /var/log/all.log 600 7 * @T00 Z=0A= /var/log/slip.log root:network 640 3 100 * Z=0A= /var/log/ppp.log root:network 640 3 100 * Z=0A= /var/log/security 600 10 100 * Z=0A= /var/log/wtmp 644 3 * @01T05 B=0A= /var/log/daily.log 640 7 * @T00 Z=0A= /var/log/weekly.log 640 5 1 $W6D0 Z=0A= /var/log/monthly.log 640 12 * $M1D0 Z=0A= /var/log/console.log 600 5 100 * Z=0A= ------=_NextPart_000_0021_01C46522.40032D60--