diff options
Diffstat (limited to 'priv/templates/simplesup.erl')
-rw-r--r-- | priv/templates/simplesup.erl | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/priv/templates/simplesup.erl b/priv/templates/simplesup.erl new file mode 100644 index 0000000..0e3a1de --- /dev/null +++ b/priv/templates/simplesup.erl @@ -0,0 +1,37 @@ +%%%------------------------------------------------------------------- +%% @copyright {{copyright_holder}} ({{copyright_year}}) +%% @author {{author_name}} <{{author_email}}> +%% @doc {{supid}} supervisor +%% @end +%%%------------------------------------------------------------------- + +-module({{appid}}_{{supid}}_sup). + +-behaviour(supervisor). + +%% API +-export([start_link/0]). + +%% Supervisor callbacks +-export([init/1]). + +-define(SERVER, ?MODULE). + +%%==================================================================== +%% API functions +%%==================================================================== + +start_link() -> + supervisor:start_link({local, ?SERVER}, ?MODULE, []). + +%%==================================================================== +%% Supervisor callbacks +%%==================================================================== + +%% Child :: {Id,StartFunc,Restart,Shutdown,Type,Modules} +init([]) -> + {ok, { {one_for_all, 0, 1}, []} }. + +%%==================================================================== +%% Internal functions +%%==================================================================== |