From owner-freebsd-questions Mon Mar 15 22:40:53 1999 Delivered-To: freebsd-questions@freebsd.org Received: from woodstock.monkey.net (zanak-2-58.mdm.mke.execpc.com [169.207.93.186]) by hub.freebsd.org (Postfix) with ESMTP id 2197C15127 for ; Mon, 15 Mar 1999 22:40:21 -0800 (PST) (envelope-from hamilton@pobox.com) Received: from pobox.com (localhost [127.0.0.1]) by woodstock.monkey.net (Postfix) with ESMTP id CD9A461; Tue, 16 Mar 1999 00:39:39 -0600 (CST) To: George Vagner Cc: questions@FreeBSD.ORG Subject: Re: apache In-reply-to: Your message of "Mon, 15 Mar 1999 21:52:50 GMT." <36ED8132.505A53AF@cybertrails.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 16 Mar 1999 00:39:39 -0600 From: Jon Hamilton Message-Id: <19990316063939.CD9A461@woodstock.monkey.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <36ED8132.505A53AF@cybertrails.com>, George Vagner wrote: } in my newsyslog i turn over the "access.log" file } for apache but it doesnt continue to write to it unless } i reboot the system. Please see http://www.apache.org/docs/misc/howto.html#logreset for a brief description of how to rotate Apache's log files. The original file will keep getting written to if you don't send Apache a signal to tell it to re-open the logfile(s) - that is, the one you rotated out of the way is still being written to. You can have newsyslog do this for you by using path_to_pid_file This optional field specifies the file name to read to find the daemon process id. If this field is present, a signal_number is sent the process id contained in this file. This field must start with "/" in order to be recognized properly. In your case, you'd use the path to Apache's pid file. See the newsyslog(8) man page for further details. -- Jon Hamilton hamilton@pobox.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message