Bug 168889

Summary: Clarify enabling console.log in /etc/syslog.conf
Product: Base System Reporter: rsimmons0
Component: confAssignee: Christian Brueffer <brueffer>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 9.0-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description rsimmons0 2012-06-09 06:30:13 UTC
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.

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:
Comment 1 Christian Brueffer freebsd_committer freebsd_triage 2012-07-01 13:34:31 UTC
State Changed
From-To: open->patched

Committed, thanks! 


Comment 2 Christian Brueffer freebsd_committer freebsd_triage 2012-07-01 13:34:31 UTC
Responsible Changed
From-To: freebsd-bugs->brueffer

MFC reminder.
Comment 3 dfilter service freebsd_committer freebsd_triage 2012-07-01 13:34:31 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"
Comment 4 Christian Brueffer freebsd_committer freebsd_triage 2012-07-15 12:05:00 UTC
State Changed
From-To: patched->closed

Merges done.