]> Frank Brehm's Git Trees - config/samara/etc.git/commitdiff
committing changes in /etc after emerge run
authorfbrehm <fbrehm@samara.profitbricks.localdomain>
Tue, 21 Feb 2012 06:19:00 +0000 (07:19 +0100)
committerroot <root@samara.profitbricks.localdomain>
Tue, 21 Feb 2012 06:19:00 +0000 (07:19 +0100)
Package changes:
+app-admin/ulogd-1.23-r1

.etckeeper
init.d/ulogd [new file with mode: 0755]
ulogd.conf [new file with mode: 0644]

index e6383e97621c231a7f5cb11da4039f92b0121b15..daef491a57fa9af5ccc700592f81359f2b320877 100755 (executable)
@@ -921,6 +921,7 @@ maybe chmod 0755 './init.d/twistd'
 maybe chmod 0755 './init.d/udev'
 maybe chmod 0755 './init.d/udev-mount'
 maybe chmod 0755 './init.d/udev-postmount'
+maybe chmod 0755 './init.d/ulogd'
 maybe chmod 0755 './init.d/urandom'
 maybe chmod 0755 './init.d/vixie-cron'
 maybe chmod 0755 './init.d/wpa_supplicant'
@@ -1544,6 +1545,7 @@ maybe chmod 0644 './udev/rules.d/77-mm-simtech-port-types.rules'
 maybe chmod 0644 './udev/rules.d/77-mm-usb-device-blacklist.rules'
 maybe chmod 0644 './udev/rules.d/77-mm-zte-port-types.rules'
 maybe chmod 0644 './udev/udev.conf'
+maybe chmod 0600 './ulogd.conf'
 maybe chmod 0755 './unixODBC'
 maybe chmod 0755 './unixODBC/ODBCDataSources'
 maybe chmod 0644 './unixODBC/odbc.ini'
diff --git a/init.d/ulogd b/init.d/ulogd
new file mode 100755 (executable)
index 0000000..383fb8c
--- /dev/null
@@ -0,0 +1,44 @@
+#!/sbin/runscript
+#
+# chkconfig: - 91 35
+# description: Starts and stops the ulogd daemon
+#
+# config:  /etc/ulogd.conf
+
+extra_started_commands="reload"
+
+depend() {
+       need net
+       use mysql
+}
+
+initService() {
+# Avoid using root's TMPDIR
+unset TMPDIR
+
+# Check that ulogd.conf exists.
+[ -f /etc/ulogd.conf ] || exit 0
+
+RETVAL=0
+}
+
+start() {
+       initService
+       ebegin "Starting ulogd"
+       start-stop-daemon --start --quiet --exec /usr/sbin/ulogd -- -d >/dev/null 2>&1
+       eend $?
+}
+
+stop() {
+       initService
+       ebegin "Stopping ulogd"
+       start-stop-daemon --stop --quiet --exec /usr/sbin/ulogd >/dev/null 2>&1
+       eend $?
+}
+
+reload() {
+       initService
+       ebegin "Reloading ulogd.conf file"
+       killall -HUP ulogd
+       eend $?
+}
diff --git a/ulogd.conf b/ulogd.conf
new file mode 100644 (file)
index 0000000..234ee5d
--- /dev/null
@@ -0,0 +1,82 @@
+# Example configuration for ulogd
+# $Id: ulogd.conf.in 714 2005-02-19 21:33:43Z laforge $
+#
+
+[global]
+######################################################################
+# GLOBAL OPTIONS
+######################################################################
+
+# netlink multicast group (the same as the iptables --ulog-nlgroup param)
+nlgroup=1
+
+# logfile for status messages
+logfile="/var/log/ulogd.log"
+
+# loglevel: debug(1), info(3), notice(5), error(7) or fatal(8)
+loglevel=5
+
+# socket receive buffer size (should be at least the size of the
+# in-kernel buffer (ipt_ULOG.o 'nlbufsiz' parameter)
+rmem=131071
+
+# libipulog/ulogd receive buffer size, should be > rmem
+bufsize=150000
+
+######################################################################
+# PLUGIN OPTIONS
+######################################################################
+
+# We have to configure and load all the plugins we want to use
+
+# general rules:
+# 1. load the plugins _first_ from the global section
+# 2. options for each plugin in seperate section below
+
+
+#
+# ulogd_BASE.so - interpreter plugin for basic IPv4 header fields
+#                you will always need this
+plugin="/usr/lib64/ulogd/ulogd_BASE.so"
+
+
+# output plugins. 
+plugin="/usr/lib64/ulogd/ulogd_LOGEMU.so"
+#plugin="/usr/lib64/ulogd/ulogd_OPRINT.so"
+#plugin="/usr/lib64/ulogd/ulogd_MYSQL.so"
+#plugin="/usr/lib64/ulogd/ulogd_PGSQL.so"
+#plugin="/usr/lib64/ulogd/ulogd_SQLITE3.so"
+#plugin="/usr/lib64/ulogd/ulogd_PCAP.so"
+
+
+[LOGEMU]
+file="/var/log/ulogd.syslogemu"
+sync=1
+
+[OPRINT]
+file="/var/log/ulogd.pktlog"
+
+[MYSQL]
+table="ulog"
+pass="changeme"
+user="laforge"
+db="ulogd"
+host="localhost"
+
+[PGSQL]
+table="ulog"
+schema="public"
+pass="changeme"
+user="postgres"
+db="ulogd"
+host="localhost"
+
+[SQLITE3]
+table="ulog"
+db="/path/to/sqlite/db"
+buffer=200
+
+[PCAP]
+file="/var/log/ulogd.pcap"
+sync=1
+