From: Frank Brehm Date: Mon, 16 Jan 2012 06:41:27 +0000 (+0100) Subject: saving uncommitted changes in /etc prior to emerge run X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=315d30cd6761867950d3f14a4819ae3246fe0358;p=config%2Fbruni%2Fetc.git saving uncommitted changes in /etc prior to emerge run --- diff --git a/.etckeeper b/.etckeeper index a550c75b..7e6f7871 100755 --- a/.etckeeper +++ b/.etckeeper @@ -674,6 +674,7 @@ maybe chmod 0440 './sudoers' maybe chmod 0750 './sudoers.d' maybe chmod 0644 './sysctl.conf' maybe chmod 0755 './syslog-ng' +maybe chmod 0644 './syslog-ng/._cfg0000_syslog-ng.conf' maybe chmod 0644 './syslog-ng/modules.conf' maybe chmod 0755 './syslog-ng/patterndb.d' maybe chmod 0644 './syslog-ng/patterndb.d/.keep_app-admin_syslog-ng-0' diff --git a/syslog-ng/._cfg0000_syslog-ng.conf b/syslog-ng/._cfg0000_syslog-ng.conf new file mode 100644 index 00000000..2589f2fb --- /dev/null +++ b/syslog-ng/._cfg0000_syslog-ng.conf @@ -0,0 +1,37 @@ +@version: 3.2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.conf.gentoo.3.2,v 1.1 2011/01/18 17:44:14 mr_bones_ Exp $ +# +# Syslog-ng default configuration file for Gentoo Linux + +options { + chain_hostnames(no); + + # The default action of syslog-ng is to log a STATS line + # to the file every 10 minutes. That's pretty ugly after a while. + # Change it to every 12 hours so you get a nice daily update of + # how many messages syslog-ng missed (0). + stats_freq(43200); + # The default action of syslog-ng is to log a MARK line + # to the file every 20 minutes. That's seems high for most + # people so turn it down to once an hour. Set it to zero + # if you don't want the functionality at all. + mark_freq(3600); +}; + +source src { + unix-stream("/dev/log" max-connections(256)); + internal(); + file("/proc/kmsg"); +}; + +destination messages { file("/var/log/messages"); }; + +# By default messages are logged to tty12... +destination console_all { file("/dev/tty12"); }; +# ...if you intend to use /dev/console for programs like xconsole +# you can comment out the destination line above that references /dev/tty12 +# and uncomment the line below. +#destination console_all { file("/dev/console"); }; + +log { source(src); destination(messages); }; +log { source(src); destination(console_all); };