Package: ulogd2
Version: 2.0.8-1
Severity: normal
Dear Maintainer,
The situation is :
- ulogd2 configured to use postgresql
- boot with SysV init
Problem :
ulogd2 may be launched before postgresql and fails to start
Suggested correction :
Adding these 2 lines in the init script header /etc/init.d/ulogd2 fix the
problem :
# Should-Start: postgresql mysql
# Should-Stop: postgresql mysql
(I did not verify if other "Should" dependances should be added)
Best regards.
-- System Information:
Debian Release: 12.14
merged-usr: no
Architecture: i386 (i686)
Kernel: Linux 6.1.0-33-686-pae (SMP w/2 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages ulogd2 depends on:
ii adduser 3.134
ii init-system-helpers 1.65.2devuan1
ii libc6 2.36-9+deb12u14
ii libmnl0 1.0.4-3
ii libnetfilter-acct1 1.0.3-3
ii libnetfilter-conntrack3 1.0.9-3
ii libnetfilter-log1 1.0.2-3
ii libnfnetlink0 1.0.2-2
ii sysvinit-utils [lsb-base] 3.06-4devuan3
ulogd2 recommends no packages.
Versions of packages ulogd2 suggests:
pn ulogd2-dbi <none>
pn ulogd2-json <none>
pn ulogd2-mysql <none>
pn ulogd2-pcap <none>
ii ulogd2-pgsql 2.0.8-1
pn ulogd2-sqlite3 <none>
-- Configuration Files:
/etc/logrotate.d/ulogd2 changed:
/var/log/ulogd2/ulogd2.log {
missingok
compress
delaycompress
sharedscripts
create 640 ulog adm
postrotate
invoke-rc.d ulogd2 reload > /dev/null
endscript
}
/etc/ulogd.conf changed:
[global]
logfile="/var/log/ulogd2/ulogd2.log"
loglevel=3
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_inppkt_NFLOG.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_inppkt_ULOG.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_inpflow_NFCT.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_filter_IFINDEX.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_filter_IP2STR.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_filter_IP2BIN.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_filter_PRINTPKT.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_filter_HWHDR.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_filter_PRINTFLOW.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_output_LOGEMU.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_output_SYSLOG.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_output_GPRINT.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_output_PGSQL.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_raw2packet_BASE.so"
plugin="/usr/lib/i386-linux-gnu/ulogd/ulogd_inpflow_NFACCT.so"
stack=log2:NFLOG,base1:BASE,ifi1:IFINDEX,ip2str1:IP2STR,mac2str1:HWHDR,pgsql1:PGSQL
[ct1]
[ct2]
hash_enable=0
[log1]
group=0
[log2]
group=1 # Group has to be different from the one use in log1
netlink_socket_buffer_size=409600
netlink_socket_buffer_maxsize=2048000
[log3]
group=2 # Group has to be different from the one use in log1/log2
numeric_label=1 # you can label the log info based on the packet verdict
[ulog1]
nlgroup=1
[nuauth1]
socket_path="/tmp/nuauth_ulogd2.sock"
[emu1]
file="/var/log/ulogd2/syslogemu.log"
sync=1
[op1]
file="/var/log/ulogd2/oprint.log"
sync=1
[gp1]
file="/var/log/ulogd2/gprint.log"
sync=1
timestamp=1
[xml1]
directory="/var/log/ulogd2/"
sync=1
[json1]
sync=1
[pcap1]
sync=1
[mysql1]
db="nulog"
host="localhost"
user="nupik"
table="ulog"
pass="changeme"
procedure="INSERT_PACKET_FULL"
[mysql2]
db="nulog"
host="localhost"
user="nupik"
table="conntrack"
pass="changeme"
procedure="INSERT_CT"
[pgsql1]
db=""
host=""
user=""
table="ulog"
pass=""
procedure="INSERT_PACKET_FULL"
connstring="host=/var/run/postgresql port=5432 dbname=ulogd user=ulogd"
[pgsql2]
db="nulog"
host="localhost"
user="nupik"
table="ulog2_ct"
pass="changeme"
procedure="INSERT_CT"
[pgsql3]
db="nulog"
host="localhost"
user="nupik"
table="ulog2_ct"
pass="changeme"
procedure="INSERT_OR_REPLACE_CT"
[pgsql4]
db="nulog"
host="localhost"
user="nupik"
table="nfacct"
pass="changeme"
procedure="INSERT_NFACCT"
[dbi1]
db="ulog2"
dbtype="pgsql"
host="localhost"
user="ulog2"
table="ulog"
pass="ulog2"
procedure="INSERT_PACKET_FULL"
[sqlite3_ct]
table="ulog_ct"
db="/var/log/ulogd2/ulogd.sqlite3db"
[sqlite3_pkt]
table="ulog_pkt"
db="/var/log/ulogd2/ulogd.sqlite3db"
[sys2]
facility=LOG_LOCAL2
[nacct1]
sync = 1
[mark1]
mark = 1
[acct1]
pollinterval = 2
[graphite1]
host="127.0.0.1"
port="2003"
prefix="netfilter.nfacct"
-- no debconf information