From owner-freebsd-questions Fri Nov 14 12:34:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id MAA01430 for questions-outgoing; Fri, 14 Nov 1997 12:34:15 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from mph124.rh.psu.edu (hunt@MPH124.rh.psu.edu [128.118.126.83]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id MAA01421 for ; Fri, 14 Nov 1997 12:34:10 -0800 (PST) (envelope-from hunt@mph124.rh.psu.edu) Received: (from hunt@localhost) by mph124.rh.psu.edu (8.8.7/8.8.7) id PAA02500; Fri, 14 Nov 1997 15:33:43 -0500 (EST) (envelope-from hunt) Message-ID: <19971114153342.08902@mph124.rh.psu.edu> Date: Fri, 14 Nov 1997 15:33:42 -0500 From: Matthew Hunt To: dave@richcon.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: newsyslog and apache - logfiles changing their location... References: <346BDADD.1AFC@illumen.com> <346C821C.1224@richcon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84 In-Reply-To: <346C821C.1224@richcon.com>; from Dave Richards on Fri, Nov 14, 1997 at 09:53:48AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Fri, Nov 14, 1997 at 09:53:48AM -0700, Dave Richards wrote: > Ever since installation, we've seen strange behavior from newsyslog.. it > seems like the system cannot decide which logfile to write to, and has > switched back and forth two times thus far between * and *.0 The behavior is normal, and newsyslog is not responsible. When httpd starts up, it opens to log file you specify, and from that point on, it holds an open descriptor to that file. When newsyslog rotates the log, it changes the file's name, but httpd still has an open handle for the old log; the name of the file is not relevant. That's why, as man newsyslog states, newsyslog sends syslogd a HUP signal, instructing it to restart itself. httpd does not use syslogd, so it isn't informed that it should restart. Perhaps you could send httpd a HUP signal "by hand" after newsyslog runs. -- Matthew Hunt * Think locally, act globally. finger hunt@mph124.rh.psu.edu for PGP public key.