Subject: Re: a question about syslog.conf
To: None <netbsd-help@netbsd.org>
From: Jukka Salmi <j+nbsd@2006.salmi.ch>
List: netbsd-help
Date: 02/20/2006 17:49:30
Thierry Lacoste --> netbsd-help (2006-02-20 16:40:31 +0100):
> On my 3.0 ntpd+dhcpd+named server I appended the
> following lines to my default /etc/syslog.conf
> 
> !ntpd
> *.*                                                     /var/log/ntpd
> !dhcpd
> *.*                                                     /var/log/dhcpd
> !named
> *.*                                                     /var/log/named
> 
> The messages for e.g. named go to /var/log/named
> as I wanted. But they also still go to /var/log/mesages.

That's because all actions are taken for messages matching multiple
selectors in syslog.conf.


> which is not what I expected.
> Is there a way to prevent this?

Add `!-ntpd,dhcpd,named' right before the /var/log/messages line to
your syslog.conf, and `!*' right after it.


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~