Date: Thu, 8 Jul 2004 22:46:37 -0400 From: Bill Moran <wmoran@potentialtech.com> To: "Graham North" <graham.north@telus.net> Cc: matthew@cryptosphere.com Subject: Re: Apache log rotation problems Message-ID: <20040708224637.2c909d1b.wmoran@potentialtech.com> In-Reply-To: <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> <002401c4655c$ecd47640$627ba8c0@phoenix>
next in thread | previous in thread | raw e-mail | index | archive | help
"Graham North" <graham.north@telus.net> wrote: > 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. You need to restart apache to get it to start logging to a new file. Luckily, newsyslog can do this for you. With the default Apache install, Apache will log its PID to a file when it starts, just add this filename (/var/run/httpd.pid) to the end of each newsyslog entry that rotates an apache file, and newsyslog will automatically send a HUP signal to that PID when the log file is rotated See the man pages for newsyslog for more detailed info. -- Bill Moran Potential Technologies http://www.potentialtech.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040708224637.2c909d1b.wmoran>