From owner-freebsd-arch Wed Feb 12 16:18:52 2003 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26E2637B401; Wed, 12 Feb 2003 16:18:51 -0800 (PST) Received: from melusine.cuivre.fr.eu.org (melusine.cuivre.fr.eu.org [62.212.105.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B75043F85; Wed, 12 Feb 2003 16:18:50 -0800 (PST) (envelope-from thomas@FreeBSD.ORG) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id A33C82C3D1; Thu, 13 Feb 2003 01:18:45 +0100 (CET) Date: Thu, 13 Feb 2003 01:18:45 +0100 From: Thomas Quinot To: Wesley Peters Cc: Thomas Quinot , arch@freebsd.org Subject: Re: syslog.conf syntax change (multiple program/host specifications) Message-ID: <20030213001845.GA85036@melusine.cuivre.fr.eu.org> Reply-To: Thomas Quinot References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302111430.03156.wes@softweyr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200302111430.03156.wes@softweyr.com> User-Agent: Mutt/1.4i X-message-flag: WARNING! Using Outlook can damage your computer. Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Le 2003-02-11, Wesley Peters écrivait : > mail.info /var/log/maillog G 4M > lpr.info /var/log/lpd-errs 256K > local3.* /var/log/foo B 1K > ftp.* /var/log/ftp B 1M I think this can be achieved without modifying syslogd. You can achieve the same effect by using an appropriate program as the log destination (think Apache's rotatelogs). Eg: local3.* |/usr/local/sbin/loglimit /var/log/foo B 1K Where loglimit would copy stdin to the named file, rotating it when appropriate. Thomas. -- Thomas.Quinot@Cuivre.FR.EU.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message