The init/1
callback is allowed to return {:ok, {:supervisor.sup_flags(), [:supervisor.child_spec()]}} | :ignore
[Erlang] Designing for Scalability with Erlang/OTP (O'Reilly) p.81:
If the startup fails but you do not want to affect other processes started by the same supervisor, return
ignore
.
p.178
The
init/1
callback function normally returns the whole tuple comprising the restart tuple and a list of child specifications. But if it instead returnsignore
, the supervisor terminates with reasonnormal
.