[Bro-Dev] #920: Have broctl return useful exit codes

Bro Tracker bro at tracker.bro-ids.org
Mon Dec 10 08:38:19 PST 2012


#920: Have broctl return useful exit codes
-------------------------+------------------------
  Reporter:  grigorescu  |      Owner:
      Type:  Patch       |     Status:  new
  Priority:  Normal      |  Milestone:  Bro2.2
 Component:  BroControl  |    Version:  git/master
Resolution:              |   Keywords:
-------------------------+------------------------

Comment (by robin):

 Haven't looked at the code yet but I'm wondering about the right semantics
 for a non-zero code. Intuitively I'd expect non-zero if the command had
 seriously failed but it's a bit fuzzy when a command succeeded vs. failed;
 if {{{start}}} started up the whole cluster except for one node which is
 currently down, is that a failure? What semantics is the patch currently
 using?

 Plugins have the {{{hostStatusChanged}}} method. Would that help as an
 alternative?

-- 
Ticket URL: <http://tracker.bro-ids.org/bro/ticket/920#comment:1>
Bro Tracker <http://tracker.bro-ids.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list