[Bro-Dev] cmake/Python problem

Robin Sommer robin at icir.org
Sun May 1 22:20:28 PDT 2011


And now the attachment. :)

Robin

-- 
Robin Sommer * Phone +1 (510) 722-6541 * robin at icir.org
ICSI/LBNL    * Fax   +1 (510) 666-2956 *   www.icir.org
-------------- next part --------------
diff --git a/aux/broctl/BroControl/options.py b/aux/broctl/BroControl/options.py
index 7d851c3..931e9ab 100644
--- a/aux/broctl/BroControl/options.py
+++ b/aux/broctl/BroControl/options.py
@@ -30,6 +30,8 @@ options = [
            "True to let backends capture short-term traces via '-w'. These are not archived but might be helpful for debugging."),
     Option("DevMode", "0", "bool", Option.USER, False,
            "Enable development mode, which changes how things are installed by the _install_ command."),
+    Option("RemoveState", "0", "bool", Option.USER, False,
+           "True if past persistent state should be removed before starting Bro."),
 
     Option("LogDir", "${BroBase}/logs", "string", Option.USER, False,
            "Directory for archived log files."),
diff --git a/aux/broctl/bin/run-bro.in b/aux/broctl/bin/run-bro.in
index d95a8da..c6cf6ef 100755
--- a/aux/broctl/bin/run-bro.in
+++ b/aux/broctl/bin/run-bro.in
@@ -56,12 +56,12 @@ else
    echo -1 >.pid
    exit 1
 fi
-
-# ulimit -a
-# echo 
-
 tmpbro=${tmpexecdir}/`basename ${bro}`
 
+if [ "${removestate}" != "0" ]; then
+    rm -rf .state
+fi
+
 rm -f $tmpbro
 cp -p ${bro} $tmpbro
 sleep 1


More information about the bro-dev mailing list