From owner-freebsd-current Fri Apr 5 22:14: 4 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 465CF37B405; Fri, 5 Apr 2002 22:14:02 -0800 (PST) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g366E0Dd445658; Sat, 6 Apr 2002 01:14:00 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <21793.1018042030@critter.freebsd.dk> References: <21793.1018042030@critter.freebsd.dk> Date: Sat, 6 Apr 2002 01:13:59 -0500 To: Poul-Henning Kamp , current@FreeBSD.ORG From: Garance A Drosihn Subject: Re: patch: make syslog stop spamming any root it finds... Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 11:27 PM +0200 4/5/02, Poul-Henning Kamp wrote: >For the life of me I cannot understand why we feel the >need to whine like that at any root which crosses our >way, so unless somebody can explain to me why this is >vital, I'll commit the following patch. There are times when it has been useful to me to have the messages show up immediately on a root-login window, instead of at some later time when I happen to read /var/log/messages. Of course, there are other times when it absolutely infuriates me when some dumb message pops up in the middle of what I'm doing -- particularly if it's a message triggered by something I'm testing. As to your patch, how about leaving the line for *.alert there, but commented out. That would just leave it as an example to show how syslog messages can go to a logged-in user. But when I saw the subject for this thread, I admit I was hoping you meant something different. Is there any good way we could say "send to a root login on ttyv0, but NOT to root logged onto any other device"? That way, when I wouldn't mind syslog spamming me, I could login to the first virtual terminal, and when I didn't want it I could log into any of the other ones. I guess I'm asking for a new "action type", something like: *.alert root@/dev/ttyv0 or maybe just *.alert root@ttyv0 -- Garance Alistair Drosehn = gad@eclipse.acs.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-current" in the body of the message