Xirsys.XTurn.Certs.SignalHandler.Registrar (xturn v2.0.0)

Copy Markdown View Source

Installs the SIGHUP certificate reload handler at boot.

What problem this solves

The signal handler must be registered once during application start and kept alive for the node lifetime. This GenServer sets :os.set_signal(:sighup, :handle), adds SignalHandler to :erl_signal_server, and stops if the handler is removed unexpectedly so ops can detect misconfiguration.

Internal: started from the application supervision tree.

RFCs

No STUN/TURN RFC applies. Pairs with Certs.SignalHandler for TURNS certificate reload (TLS/DTLS transports in RFC 8656).

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the registrar (registered as __MODULE__).

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

Starts the registrar (registered as __MODULE__).