View Source Singleton.Manager (singleton v1.4.0)
Singleton watchdog process
Each node that the singleton runs on, runs this process. It is responsible for starting the singleton process (with the help of Erlang's 'global' module).
When starting the singleton process fails, it instead monitors the process, so that in case it dies, it will try to start it locally.
The singleton process is started using the GenServer.start_link
call, with the given module and args.
Summary
Functions
Returns a specification to start this module under a supervisor.
Start the manager process, registering it under a unique name.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Start the manager process, registering it under a unique name.