mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Organize command-line options for Supervisor filtering/inheritance
Also have stem process execv() with original command-line arguments so that they're re-parsed and inherited correctly by supervised-nodes in the event the stem process needs to be re-created.
This commit is contained in:
parent
000d902b86
commit
297317b232
5 changed files with 103 additions and 33 deletions
|
@ -39,6 +39,7 @@ export {
|
|||
global destroy: function(nodes: string): bool;
|
||||
global restart: function(nodes: string &default="all"): bool;
|
||||
|
||||
global is_supervisor: function(): bool;
|
||||
global is_supervised: function(): bool;
|
||||
|
||||
global Supervisor::stop_request: event();
|
||||
|
|
|
@ -69,6 +69,11 @@ function Supervisor::restart(nodes: string): bool
|
|||
return Supervisor::__restart(nodes);
|
||||
}
|
||||
|
||||
function is_supervisor(): bool
|
||||
{
|
||||
return Supervisor::__is_supervisor();
|
||||
}
|
||||
|
||||
function is_supervised(): bool
|
||||
{
|
||||
return Supervisor::__is_supervised();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue