From nobody@FreeBSD.org  Wed Oct  2 10:27:05 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2D17937B401
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Oct 2002 10:27:05 -0700 (PDT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id E237B43E6A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Oct 2002 10:27:04 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.6/8.12.6) with ESMTP id g92HR47R051216
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 2 Oct 2002 10:27:04 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.6/8.12.6/Submit) id g92HR4WV051215;
	Wed, 2 Oct 2002 10:27:04 -0700 (PDT)
Message-Id: <200210021727.g92HR4WV051215@www.freebsd.org>
Date: Wed, 2 Oct 2002 10:27:04 -0700 (PDT)
From: Tuc <freebsd@ttsg.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: syslog.conf with #! in start prevents other rules from running
X-Send-Pr-Version: www-1.0

>Number:         43594
>Category:       bin
>Synopsis:       syslog.conf with #! in start prevents other rules from running
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 02 10:30:04 PDT 2002
>Closed-Date:    Sat Oct 05 16:25:34 PDT 2002
>Last-Modified:  Sat Oct 05 16:25:34 PDT 2002
>Originator:     Tuc
>Release:        4.6
>Organization:
TTSG Internet Services, Inc.
>Environment:
FreeBSD himinbjorg.ttsg.com 4.6-RC FreeBSD 4.6-RC #4: Thu Aug  8 10:56:19 EDT 2002     root@himinbjorg.ttsg.com:/usr/src/sys/compile/HIMINBJORG  i386
>Description:
When we put an entry in /etc/syslog.conf, after commenting the rest of 
it out, syslog won't log to those new entries
>How-To-Repeat:
Add :

#!startslip
#*.*                                            /var/log/slip.log
#!ppp
#*.*                                            /var/log/ppp.log


To /etc/syslog.conf, and notice it won't do anything. Now do :

*.*                                             /var/log/spool
*.*                                             /var/log/spool2
#!startslip
#*.*                                            /var/log/slip.log
#!ppp
#*.*                                            /var/log/ppp.log

HUP syslog, and it'll log to the files.

Now do :

#!startslip
#*.*                                            /var/log/slip.log
#!ppp
#*.*                                            /var/log/ppp.log
*.*                                             /var/log/spool
*.*                                             /var/log/spool2


HUP syslog. Now it won't log to the files.
>Fix:
      N/A
>Release-Note:
>Audit-Trail:

From: Andy Farkas <andyf@speednet.com.au>
To: Tuc <freebsd@ttsg.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: bin/43594: syslog.conf with #! in start prevents other rules
 from running
Date: Sun, 6 Oct 2002 09:14:19 +1000 (EST)

 On Wed, 2 Oct 2002, Tuc wrote:
 
 > Now do :
 >
 > #!startslip
 > #*.*                                            /var/log/slip.log
 > #!ppp
 > #*.*                                            /var/log/ppp.log
 > *.*                                             /var/log/spool
 > *.*                                             /var/log/spool2
 >
 > HUP syslog. Now it won't log to the files.
 
 man syslog.conf says:
 
  "A program specification is a line beginning with `#!prog'"
 
 So, you are telling syslog to log all output from ppp to /var/log/spool
 and /var/log/spool2.
 
 --
 
  :{ andyf@speednet.com.au
 
         Andy Farkas
     System Administrator
    Speednet Communications
  http://www.speednet.com.au/
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Sat Oct 5 16:24:21 PDT 2002 
State-Changed-Why:  
I believe Andy is correct when he says this is the expected 
behaviour. Program selections apply to all the following lines, 
until reset. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=43594 
>Unformatted:
