z_sites_sup (zotonic_core v1.0.0-rc.17)

Supervisor for sites supervisors

Summary

Functions

API for starting the sites dispatcher and manager

Functions

init(_)

-spec init(list()) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}.

start_link()

-spec start_link() -> supervisor:startlink_ret().

API for starting the sites dispatcher and manager

start_site(Site)

-spec start_site(Site :: atom()) -> supervisor:startchild_ret() | {error, term()}.

stop_site(Pid)

-spec stop_site(pid()) -> ok | {error, not_found}.