z_sites_sup (zotonic_core v1.0.0-rc.10)
Link to this section Summary
Functions
API for starting the sites dispatcher and manager
Link to this section Functions
Link to this function
init(_)
-spec init(list()) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.
Link to this function
start_link()
-spec start_link() -> {ok, pid()} | {error, term()}.
Link to this function
start_site(Site)
-spec start_site(Site :: atom()) -> {ok, pid()} | {error, {already_started, pid()}} | {error, term()}.
Link to this function
stop_site(Pid)
-spec stop_site(pid()) -> ok | {error, not_found}.