View Source Single (single v0.2.0)
Manager process that starts and watches a singleton process. This process should be started on
each node that the singleton process will be run on. The Erlang
:global
module is responsible for ensuring that there
are not duplicate instances of the singleton process within the cluster.
If the singleton process has not already been started then it will be started and linked to the
manager process. If the singleton process exits for any reason, whether :normal
or otherwise,
then the Single
process will exit with the same reason. If the manager process exits with a
reason other than :normal
then the singleton process will exit with the same reason.
If the singleton process is already started then the manager process will monitor it. If the remote singleton process exits for any reason then the manager process will try to start it again.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.