From owner-freebsd-chat Sat Jun 23 0:12: 5 2001 Delivered-To: freebsd-chat@freebsd.org Received: from lariat.org (lariat.org [12.23.109.2]) by hub.freebsd.org (Postfix) with ESMTP id 62FEB37B401 for ; Sat, 23 Jun 2001 00:12:03 -0700 (PDT) (envelope-from brett@lariat.org) Received: from mustang.lariat.org (IDENT:ppp0.lariat.org@lariat.org [12.23.109.2]) by lariat.org (8.9.3/8.9.3) with ESMTP id BAA01308 for ; Sat, 23 Jun 2001 01:11:44 -0600 (MDT) Message-Id: <4.3.2.7.2.20010623010611.04786930@localhost> X-Sender: brett@localhost X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Sat, 23 Jun 2001 01:11:37 -0600 To: chat@FreeBSD.ORG From: Brett Glass Subject: newsyslog question Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In the past, I've used my own routines to rotate Web logs, but have decided to try doing it via the more standard newsyslog utility. Part of rotating Apache logs is to send a signal to the process to let it know that its log file must be reopened. SIGHUP works, and I believe that SIGUSR1 does as well but more gracefully. The man page for this utility specifies the format of a line in /etc/newsyslog.conf, but doesn't say whether signals (if you send them to the process to let it know that its logs have been pulled out from under it) must be specified numerically or can be specified by name. Will the following line work properly for an Apache Web server? /var/log/website-access_log 644 5 * $W6D0 Z /var/run/httpd.pid SIGUSR1 --Brett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message