]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Add initscript for ulogd and chancge configuration path.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 9 Aug 2009 19:25:40 +0000 (21:25 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 9 Aug 2009 19:25:40 +0000 (21:25 +0200)
ulogd doesn't work as I want it to, because the sqlite plugin
is still missing. For debugging purposes, we use a emulation for
syslog and store this in a plain text file.

config/ulogd/ulogd.conf
lfs/ulogd2
src/initscripts/extras/ulogd.conf [new file with mode: 0644]

index a243742252edaa0f48f6fe2fc22fc7c36f428a45..c2b8e6dfb5d18eff143b419eaf7b855ff25fef57 100644 (file)
@@ -68,7 +68,7 @@ group=0
 bind=1
 
 [emu1]
-file="/var/log/ulogd_syslogemu.log"
+file="/var/log/ulogd/syslogemu.log"
 sync=1
 
 [pcap1]
index e4083c5e3e5a315fd988d6c693b6da5c470a177e..265192f3b698ceb418f6dbc133a6a16fd46e22ac 100644 (file)
@@ -38,6 +38,7 @@ EXTRA      = no
 DEBUG      = no
 
 DEPS       = sqlite
+INITSCRIPT = ulogd
 
 ###############################################################################
 # Top-level Rules
@@ -78,6 +79,8 @@ $(OBJECT): $(objects)
        cd $(DIR_APP) && make install
        cp -vf $(DIR_CONFIG)/$(PKG_NAME)/ulogd.conf /etc/ulogd.conf
 
+       $(INSTALL_INITSCRIPT)
+
        -mkdir -pv /var/log/ulogd
        rm -vf /var/log/ulogd/ulogd.db
        sqlite3 -echo /var/log/ulogd/ulogd.db < $(DIR_CONFIG)/$(PKG_NAME)/sqlite3.table
diff --git a/src/initscripts/extras/ulogd.conf b/src/initscripts/extras/ulogd.conf
new file mode 100644 (file)
index 0000000..498adaa
--- /dev/null
@@ -0,0 +1,8 @@
+description            "A userspace logging daemon"
+author                 "IPFire Team"
+
+start on started firewall
+stop on stopping firewall
+
+exec /usr/sbin/ulogd -c /etc/ulogd.conf
+respawn