gamelinux / cxtracker

Connection Tracker is a passive network connection tracker for profiling, history, auditing and network discovery.
http://www.gamelinux.org/
46 stars 24 forks source link

cxtracker init script bugs #1

Closed comotion closed 13 years ago

comotion commented 14 years ago
--- /etc/init.d/cxtracker       2010-09-18 18:59:11.000000000 +0000
+++ cxtracker.new       2010-10-27 13:02:09.000000000 +0000
@@ -26,7 +26,7 @@
   start)
 #      chown -R ${CXT_UID}.${CXT_GID} ${CXT_ARCHIVE_DIR}/
        echo -n "Starting $NAME ..."
-       $DAEMON $CXT_ARCHIVE_DIR $CXT_INTERFACE $CXT_USER $CXT_GROUP > /var/log/$NAME.log  2>&1 &
+       $DAEMON $CXT_ARCHIVE_DIR $CXT_INTERFACE $CXT_USER $CXT_GROUP -b "$CXT_BPF" >> /var/log/$NAME.log  2>&1 &
        PID1=$!
         echo "$PID1" > $PIDFILE
        echo " done."

--- /etc/default/cxtracker.old  2010-10-27 13:05:08.000000000 +0000
+++ /etc/default/cxtracker      2010-10-27 13:05:23.000000000 +0000
@@ -1,5 +1,5 @@
 # Set main configuration options here
-CXT_ARCHIVE_DIR="/nsm_data/`hostname -s`/cxtracker"
+CXT_ARCHIVE_DIR="-d /nsm_data/`hostname -s`/cxtracker"
 CXT_INTERFACE="-i eth0"
 CXT_USER="-u nsm"
 CXT_GROUP="-g nsm"
gamelinux commented 13 years ago

Should be fixed now