[Bro] BROKER + CLUSTER - stuck (Mike Dopheide)

Daniel Thayer dnthayer at illinois.edu
Wed Mar 8 15:55:20 PST 2017


Although I couldn't reproduce this problem, I have a
possible fix.  If you decide to try it, let me know
if it fixes the problem.

Apply the following patch to
/usr/local/bro/share/bro/broctl/check.bro

--- check.bro.orig	2017-03-08 17:49:53.000000000 -0600
+++ check.bro	2017-03-08 17:49:37.000000000 -0600
@@ -17,3 +17,6 @@
      Log::remove_filter(LoadedScripts::LOG, "default");
      Log::add_filter(LoadedScripts::LOG, f);
      }
+
+# This prevents "broctl scripts" from hanging.
+redef exit_only_after_terminate = F;



And apply the following patch to
/usr/local/bro/share/broctl/scripts/check-config

--- check-config.orig	2017-03-08 17:51:54.000000000 -0600
+++ check-config	2017-03-08 17:52:05.000000000 -0600
@@ -45,7 +45,13 @@
  echo $@ >.cmdline
  touch .checking

-"${bro}" "$@"
+check_option="-a"
+if [ "$print_loaded_scripts" = "1" ]; then
+    # No bro logs are created with "-a", so don't use it with "broctl 
scripts".
+    check_option=
+fi
+
+"${bro}" $check_option "$@"
  rc=$?

  if [ $rc -eq 0 -a "$print_loaded_scripts" = "1" ]; then




More information about the Bro mailing list