From nobody@FreeBSD.org  Sat Jun  9 05:26:48 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id C2E5A1065674
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Jun 2012 05:26:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id AE77D8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Sat,  9 Jun 2012 05:26:48 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q595QmZS003186
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 9 Jun 2012 05:26:48 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q595Qmkv003185;
	Sat, 9 Jun 2012 05:26:48 GMT
	(envelope-from nobody)
Message-Id: <201206090526.q595Qmkv003185@red.freebsd.org>
Date: Sat, 9 Jun 2012 05:26:48 GMT
From: Robert Simmons <rsimmons0@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Clarify enabling console.log in /etc/syslog.conf
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         168889
>Category:       conf
>Synopsis:       Clarify enabling console.log in /etc/syslog.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    brueffer
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 09 05:30:13 UTC 2012
>Closed-Date:    Sun Jul 15 13:05:20 CEST 2012
>Last-Modified:  Sun Jul 15 13:05:20 CEST 2012
>Originator:     Robert Simmons
>Release:        9.0-RELEASE
>Organization:
>Environment:
>Description:
syslog.conf mentions what changes need to be made to enable all.log, and it is obvious that the same information applies to console.log.  However, if it is made clear in the comments, it may prevent any trial and error the first time a user sets this up.
>How-To-Repeat:

>Fix:
I have included a patch to add a comment to syslog.conf to make it completely clear what needs to be done to have console.log work properly.

Patch attached with submission follows:

--- etc/syslog.conf.old	2009-06-11 11:07:02.000000000 -0400
+++ etc/syslog.conf	2012-06-09 01:19:27.523490158 -0400
@@ -16,6 +16,7 @@
 *.=debug					/var/log/debug.log
 *.emerg						*
 # uncomment this to log all writes to /dev/console to /var/log/console.log
+# touch /var/log/console.log and chmod it to mode 600 before it will work
 #console.info					/var/log/console.log
 # uncomment this to enable logging of all log messages to /var/log/all.log
 # touch /var/log/all.log and chmod it to mode 600 before it will work


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: brueffer 
State-Changed-When: Sun Jul 1 14:34:31 CEST 2012 
State-Changed-Why:  
Committed, thanks! 


Responsible-Changed-From-To: freebsd-bugs->brueffer 
Responsible-Changed-By: brueffer 
Responsible-Changed-When: Sun Jul 1 14:34:31 CEST 2012 
Responsible-Changed-Why:  
MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=168889 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: conf/168889: commit references a PR
Date: Sun,  1 Jul 2012 12:34:31 +0000 (UTC)

 Author: brueffer
 Date: Sun Jul  1 12:34:19 2012
 New Revision: 237921
 URL: http://svn.freebsd.org/changeset/base/237921
 
 Log:
   Similar to all.log, mention that /var/log/console.log has to be created and chmod'ed
   to make logging work.
   
   PR:		168889
   Submitted by:	Robert Simmons <rsimmons0@gmail.com>
   MFC after:	1 week
 
 Modified:
   head/etc/syslog.conf
 
 Modified: head/etc/syslog.conf
 ==============================================================================
 --- head/etc/syslog.conf	Sun Jul  1 12:00:36 2012	(r237920)
 +++ head/etc/syslog.conf	Sun Jul  1 12:34:19 2012	(r237921)
 @@ -16,6 +16,7 @@ cron.*						/var/log/cron
  *.=debug					/var/log/debug.log
  *.emerg						*
  # uncomment this to log all writes to /dev/console to /var/log/console.log
 +# touch /var/log/console.log and chmod it to mode 600 before it will work
  #console.info					/var/log/console.log
  # uncomment this to enable logging of all log messages to /var/log/all.log
  # touch /var/log/all.log and chmod it to mode 600 before it will work
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: brueffer 
State-Changed-When: Sun Jul 15 13:05:00 CEST 2012 
State-Changed-Why:  
Merges done. 

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