z_sites_sup (zotonic_core v1.0.0-rc.10)

Supervisor for sites supervisors

Link to this section Summary

Functions

API for starting the sites dispatcher and manager

Link to this section Functions

-spec init(list()) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
-spec start_link() -> {ok, pid()} | {error, term()}.
API for starting the sites dispatcher and manager
Link to this function

start_site(Site)

-spec start_site(Site :: atom()) -> {ok, pid()} | {error, {already_started, pid()}} | {error, term()}.
-spec stop_site(pid()) -> ok | {error, not_found}.