From 0a8ea94a87a6c1301897614dd8f280edf5b43815 Mon Sep 17 00:00:00 2001 From: frank Date: Sat, 28 Jan 2012 22:25:23 +0100 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .etckeeper | 3 ++- logrotate.d/ulogd | 22 +++++++++++++++++++--- motd | 8 +++++--- runlevels/default/ulogd | 1 + ulogd.conf | 18 +++++++++--------- 5 files changed, 36 insertions(+), 16 deletions(-) create mode 120000 runlevels/default/ulogd diff --git a/.etckeeper b/.etckeeper index beb26d1..89b46af 100755 --- a/.etckeeper +++ b/.etckeeper @@ -1000,7 +1000,8 @@ maybe chmod 0755 './udev/rules.d' maybe chmod 0644 './udev/rules.d/.keep_sys-fs_udev-0' maybe chmod 0644 './udev/rules.d/70-persistent-cd.rules' maybe chmod 0644 './udev/udev.conf' -maybe chmod 0644 './ulogd.conf' +maybe chgrp ulogd './ulogd.conf' +maybe chmod 0640 './ulogd.conf' maybe chmod 0755 './unixODBC' maybe chmod 0755 './unixODBC/ODBCDataSources' maybe chmod 0644 './unixODBC/odbc.ini' diff --git a/logrotate.d/ulogd b/logrotate.d/ulogd index b3fb6d1..52a5d76 100644 --- a/logrotate.d/ulogd +++ b/logrotate.d/ulogd @@ -1,7 +1,23 @@ -/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.pcap { - missingok +#/var/log/ulogd.log /var/log/ulogd.syslogemu /var/log/ulogd.pktlog /var/log/ulogd.pcap { +# missingok +# sharedscripts +# postrotate +# /bin/killall -HUP ulogd 2> /dev/null || true +# endscript +#} + +/var/log/ulogd/*.log { + daily + maxage 2y + rotate 999 + olddir /var/log/ulogd/%Y-%m + size 4M sharedscripts postrotate - /bin/killall -HUP ulogd 2> /dev/null || true + /etc/init.d/ulogd restart + #/bin/killall -HUP ulogd 2> /dev/null || true endscript } + + +# vim: ts=4 filetype=conf diff --git a/motd b/motd index e6af94c..5cced35 100644 --- a/motd +++ b/motd @@ -7,9 +7,11 @@ Gentoo Base System release 2.0.3 \___/|_| |_|\__,_| |_| -Hey, sonst denkt ihr auch immer, Joey wäre eine multiple -Persönlichkeit. Dann zählt die gefälligst auch so. - -- Martin Schulze +"Das Schwein trägt seinen Namen nicht umsonst" - Stilblüten aus +Kinderaufsätzen: (Naturwissenschaft und Mathematik) + +Die Astronauten haben auch entdeckt, daß das Hinterteil vom Mond auch +nicht so glatt und rund ist. Today is Pungenday, the 28th day of Chaos in the YOLD 3178 diff --git a/runlevels/default/ulogd b/runlevels/default/ulogd new file mode 120000 index 0000000..23bca12 --- /dev/null +++ b/runlevels/default/ulogd @@ -0,0 +1 @@ +/etc/init.d/ulogd \ No newline at end of file diff --git a/ulogd.conf b/ulogd.conf index bd72e6b..9f742c3 100644 --- a/ulogd.conf +++ b/ulogd.conf @@ -9,10 +9,10 @@ # logfile for status messages -logfile="/var/log/ulogd.log" +logfile="/var/log/ulogd/ulogd.log" # loglevel: debug(1), info(3), notice(5), error(7) or fatal(8) -loglevel=1 +loglevel=3 ###################################################################### # PLUGIN OPTIONS @@ -26,7 +26,7 @@ loglevel=1 plugin="/usr/lib64/ulogd/ulogd_inppkt_NFLOG.so" -#plugin="/usr/lib64/ulogd/ulogd_inppkt_ULOG.so" +plugin="/usr/lib64/ulogd/ulogd_inppkt_ULOG.so" plugin="/usr/lib64/ulogd/ulogd_inpflow_NFCT.so" plugin="/usr/lib64/ulogd/ulogd_filter_IFINDEX.so" plugin="/usr/lib64/ulogd/ulogd_filter_IP2STR.so" @@ -47,13 +47,13 @@ plugin="/usr/lib64/ulogd/ulogd_output_XML.so" plugin="/usr/lib64/ulogd/ulogd_raw2packet_BASE.so" # this is a stack for logging packet send by system via LOGEMU -#stack=log1:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU +stack=log1:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU # this is a stack for packet-based logging via LOGEMU -#stack=log2:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU +stack=log2:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU # this is a stack for ULOG packet-based logging via LOGEMU -#stack=ulog1:ULOG,base1:BASE,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU +stack=ulog1:ULOG,base1:BASE,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU # this is a stack for packet-based logging via LOGEMU with filtering on MARK #stack=log2:NFLOG,mark1:MARK,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,print1:PRINTPKT,emu1:LOGEMU @@ -146,15 +146,15 @@ nlgroup=1 #numeric_label=0 # optional argument [emu1] -file="/var/log/ulogd_syslogemu.log" +file="/var/log/ulogd/syslogemu.log" sync=1 [op1] -file="/var/log/ulogd_oprint.log" +file="/var/log/ulogd/oprint.log" sync=1 [xml1] -directory="/var/log/" +directory="/var/log/ulogd/" sync=1 [pcap1] -- 2.39.5