Skip to main content

Module plugin

Module plugin 

Source
Expand description

A harness child, restarted the way OTP restarts one.

Permanent restarts however it exited, transient only on a crash, temporary never. max_restarts exits inside window_secs give up (Armstrong, Making reliable distributed systems in the presence of software errors). ljos supervise prints a herdr agent start line and does not run it. A persona pane is opened by the [[tool]] table in persona_session, not by that line.

Structs§

Child
One harness child. max_restarts exits inside window_secs give up.
Decision
What ljos supervise prints.
Supervisor
The exits already counted, as seconds since the epoch.

Enums§

Action
What the supervisor does with one exit.
ExitKind
Whether the child exited on its own or failed.
Restart
How a child is restarted. The three OTP values.

Functions§

herdr_argv
The herdr line that would start this child again: herdr agent start persona-NAME --no-focus --cwd HOME -- sh SCRIPT. The script is the one that execs the harness. ljos supervise prints the line and does not run it.