blob: 9770f2cdaa6d5a61a6842e9107694b4c407e6287 [file] [log] [blame]
%% @author {{author}}
%% @copyright {{year}} {{author}}
%% @doc {{appid}}.
-module({{appid}}).
-author("{{author}}").
-export([start/0, stop/0]).
ensure_started(App) ->
case application:start(App) of
ok ->
ok;
{error, {already_started, App}} ->
ok
end.
%% @spec start() -> ok
%% @doc Start the {{appid}} server.
start() ->
{{appid}}_deps:ensure(),
ensure_started(crypto),
application:start({{appid}}).
%% @spec stop() -> ok
%% @doc Stop the {{appid}} server.
stop() ->
application:stop({{appid}}).