From owner-freebsd-questions Fri Dec 14 8: 8:46 2001 Delivered-To: freebsd-questions@freebsd.org Received: from prioris.mini.pw.edu.pl (prioris.mini.pw.edu.pl [194.29.178.2]) by hub.freebsd.org (Postfix) with ESMTP id 7DD0237B405 for ; Fri, 14 Dec 2001 08:08:37 -0800 (PST) Received: by prioris.mini.pw.edu.pl (Postfix, from userid 1368) id E94D87CEE3; Fri, 14 Dec 2001 17:08:34 +0100 (CET) Date: Fri, 14 Dec 2001 17:08:34 +0100 From: Grzegorz Czaplinski To: jacks@sage-american.com Cc: freebsd-questions@freebsd.org Subject: Re: Log dies after rotation Message-ID: <20011214170834.B35818@prioris.mini.pw.edu.pl> References: <3.0.5.32.20011214001820.03dc67c8@mail.sage-american.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3.0.5.32.20011214001820.03dc67c8@mail.sage-american.com>; from jacks@sage-american.com on Fri, Dec 14, 2001 at 12:18:20AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Dec 14, 2001 at 12:18:20AM -0600, jacks@sage-american.com wrote: > After setting up the newsyslog to rotate natd log, it gets trimmed okay, > but stops recording afterwards. Have looked everywhere for an explanation, > but NADA... here is the line in my newsyslog.conf: > # logfilename [owner:group] mode count size when [ZB] > [/pid_file] [sig_num] > /var/log/alias.log 644 3 * $D0 Z > > It should be pretty simple, but hit a brick wall... been looking at it too > long! It's set to trim at midnight and now it's 12:16am and no more > logging. Has been running at about 2MB/day. I thought the permissions was > set okay, but that about the only thing I haven't changed. > > ...any suggestions appreciated once again... sigh! Does it start loging when you snap it with a HUP signal? Probably you lack two more filds: [/pid_file] and [sig_num]. The default signal is SIGHUP so puting a pid file path should be sufficient. Give it a try and share the results. gregory -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message