Date: Thu, 8 Jul 2004 19:32:05 -0700 From: "Graham North" <graham.north@telus.net> To: <freebsd-questions@freebsd.org>, "Matthew Seaman" <matthew@cryptosphere.com> Cc: Matthew Seaman <matthew@cryptosphere.com> Subject: Apache log rotation problems Message-ID: <002401c4655c$ecd47640$627ba8c0@phoenix> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002401c4655c$ecd47640$627ba8c0>