From owner-freebsd-arch Fri Feb 14 22:48:17 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 C09F237B401 for ; Fri, 14 Feb 2003 22:48:15 -0800 (PST) Received: from smtp4.server.rpi.edu (smtp4.server.rpi.edu [128.113.2.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6B2643F3F for ; Fri, 14 Feb 2003 22:48:14 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp4.server.rpi.edu (8.12.7/8.12.7) with ESMTP id h1F6mD3v032539; Sat, 15 Feb 2003 01:48:13 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200302141733.29304.wes@softweyr.com> References: <20030210114930.GB90800@melusine.cuivre.fr.eu.org> <200302141100.23529.wes@softweyr.com> <200302141733.29304.wes@softweyr.com> Date: Sat, 15 Feb 2003 01:48:12 -0500 To: Wes Peters From: Garance A Drosihn Subject: Re: syslog.conf syntax change (multiple program/host specifications) Cc: arch@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-RPI-Spam-Score: -1.6 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01 X-Scanned-By: MIMEDefang 2.28 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 At 5:33 PM -0800 2/14/03, Wes Peters wrote: >Keywords are easier to parse than name=value pairs in this case. >How 'bout: > >lpr.info /var/log/lpd-errs 256K >local3.* /var/log/foo new 1K >ftp.* /var/log/ftp bzip 1M >cron.* /var/log/cron rm Hmm. If syslogd can call newsyslog, does it need bzip/gzip options? [I'm just wondering, I have no preference either way] > > I'd also suggest that newsyslog be run with some (new?) option >> that says "rotate this file, even if you don't think it needs >> to be rotated". > >newsyslog doesn't really seen to have this feature; -F just >truncates the file. I'll look into a proper "force" flag >for newsyslog. Based on a few minutes of testing, I think newsyslog will pretty much do the right thing if you call it as: newsyslog -Fr /var/log/somefilename The '-r' is just so newsyslog doesn't turn around and send a signal back to syslogd. I'm still tempted to add a '-R'. > > I'd expect newsyslog to know *how* to do the >> rotation in this case (bzip, gzip, or alternate file-naming >> conventions, and permissions on the newly-created log file). > >What should it do if told to newsyslog a file it is not >configured to handle? I would add some default rotate-action to newsyslog, which would be used if -R is specified and the file is not listed in the newsyslog.conf file. I think we'd then want some way for the user to change that default rotate-action. Probably by something like adding a line where the filename is . -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message