This behavior module provides a supervisor bridge, a process
that connects a subsystem not designed according to the OTP design
principles to a supervision tree. The supervisor bridge sits between
a supervisor and the subsystem. It behaves like a real supervisor to
its own supervisor, but has a different interface than a real
supervisor to the subsystem. For more information, see
A supervisor bridge assumes the functions for starting and stopping the subsystem to be located in a callback module exporting a predefined set of functions.
The
Unless otherwise stated, all functions in this module fail if the specified supervisor bridge does not exist or if bad arguments are specified.
Creates a supervisor bridge process, linked to the calling process,
which calls
If
If
If
If no name is provided, the supervisor bridge is not registered.
If the supervisor bridge and the subsystem are successfully
started, the function returns
If there already exists a process with the specified
If
If
The following functions must be exported from a
Whenever a supervisor bridge is started using
The function is to return
If later
If the initialization fails, the function is to return
This function is called by the supervisor bridge when it is about
to terminate. It is to be the opposite of