From nobody@FreeBSD.org  Sun Dec 11 14:36:21 2005
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 764E816A423
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Dec 2005 14:36:21 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 9304F43D69
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Dec 2005 14:36:12 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id jBBEZmQH074865
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 11 Dec 2005 14:35:48 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id jBBEZmAX074864;
	Sun, 11 Dec 2005 14:35:48 GMT
	(envelope-from nobody)
Message-Id: <200512111435.jBBEZmAX074864@www.freebsd.org>
Date: Sun, 11 Dec 2005 14:35:48 GMT
From: Joo <joao@matik.com.br>
To: freebsd-gnats-submit@FreeBSD.org
Subject: syslog -C does not creat log files
X-Send-Pr-Version: www-2.3

>Number:         90241
>Category:       bin
>Synopsis:       newsyslog(8): syslog -C does not creat log files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 11 14:40:02 GMT 2005
>Closed-Date:    Mon Dec 12 09:17:56 GMT 2005
>Last-Modified:  Mon Dec 12 09:17:56 GMT 2005
>Originator:     Joo
>Release:        5.4-R 6.0-R 6.0-Stable (i386 and amd64)
>Organization:
Infomatik
>Environment:
FreeBSD gw.lucenet.com.br 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Mon Nov 14 10:56:47 BRST 2005     root@:/usr/src/sys/amd64/compile/wipgw-64  amd64
>Description:
              # newsyslog -vC
/var/log/all.log <7J>: does not exist, skipped (no C flag).
/var/log/amd.log <7J>: does not exist, skipped (no C flag).
/var/log/auth.log <7J>: size (Kb): 54 [100] --> skipping
/var/log/console.log <5J>: does not exist, skipped (no C flag).
/var/log/cron <3J>: size (Kb): 80 [100] --> skipping

same when naming desirede log file on cmd line





>How-To-Repeat:
              
>Fix:
              touch /var/log/logfile
newsyslog -vF /var/log/logfile
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: glebius 
State-Changed-When: Mon Dec 12 09:16:20 UTC 2005 
State-Changed-Why:  
Not a bug, but intended behavior: 

-C      If specified once, then newsyslog will create any log files which 
do not exist, and which have the C flag specified in their config 
file entry.  If specified multiple times, then newsyslog will 
create all log files which do not already exist.  If log files 
are given on the command-line, then the -C or -CC will only apply 
to those specific log files. 

You need either edit newsyslog.conf and add "C" flag to the appropriate 
files, or run newsyslog with -C options specified twice -CC. 

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