Skip to content
  • Leigh B. Stoller's avatar
    A set of debugging changes to allow running multiple stateds. This is · cf61f6f3
    Leigh B. Stoller authored
    probably imperfect, but better then nothing. New option, "-t tag"
    allows you to specify an arbitrary tag to match against the stated_tag
    of the nodes table. The stated invocation will only operate on nodes
    that match the tag, ignoring all events for other nodes. If
    unspecified, stated will operate on all nodes with a NULL tag. This is
    setup up at the beginning of time (or during a reload) saving the
    per-node tag in the $nodes hash. Each time an event arrives, check the
    tag in the table, ignoring the event if not a match.
    
    On signaled reload() must also be careful to throw away timeouts from
    the queue (and be careful not to set up new timeouts for ignored
    nodes).  So, this allows you to set the tag for a node in the DB, and
    then HUP stated so that it reloads it tables. That node will now be
    ignored by that stated.
    
    Also made some changes to debug mode. In debug mode, don't worry about
    the pidfile or the lockfile or checking for other runn...
    cf61f6f3