From: Michael Tremer Date: Sun, 9 Aug 2009 19:25:40 +0000 (+0200) Subject: Add initscript for ulogd and chancge configuration path. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4abf4941a3f56c3ea8fc4f058109cb9856e95583;p=ipfire-3.x.git Add initscript for ulogd and chancge configuration path. 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. --- diff --git a/config/ulogd/ulogd.conf b/config/ulogd/ulogd.conf index a24374225..c2b8e6dfb 100644 --- a/config/ulogd/ulogd.conf +++ b/config/ulogd/ulogd.conf @@ -68,7 +68,7 @@ group=0 bind=1 [emu1] -file="/var/log/ulogd_syslogemu.log" +file="/var/log/ulogd/syslogemu.log" sync=1 [pcap1] diff --git a/lfs/ulogd2 b/lfs/ulogd2 index e4083c5e3..265192f3b 100644 --- a/lfs/ulogd2 +++ b/lfs/ulogd2 @@ -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 index 000000000..498adaa42 --- /dev/null +++ b/src/initscripts/extras/ulogd.conf @@ -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