mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00

This is based on commit 2731def9159247e6da8a3191783c89683363689c from the zeek-docs repo.
15 lines
400 B
Text
15 lines
400 B
Text
event zeek_init()
|
|
{
|
|
Broker::peer("127.0.0.1", 9999/tcp, 1sec);
|
|
}
|
|
|
|
event Broker::peer_added(endpoint: Broker::EndpointInfo, msg: string)
|
|
{
|
|
Broker::publish(SupervisorControl::topic_prefix, SupervisorControl::restart_request, "", "");
|
|
}
|
|
|
|
event SupervisorControl::restart_response(reqid: string, result: bool)
|
|
{
|
|
print fmt("got result of supervisor restart request: %s", result);
|
|
terminate();
|
|
}
|