From ee50579684da36f33d30408f804ec96188fb56c0 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 29 Oct 2015 14:10:01 +0100 Subject: Add rebar app skeleton --- src/pbx_sup.erl | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/pbx_sup.erl (limited to 'src/pbx_sup.erl') diff --git a/src/pbx_sup.erl b/src/pbx_sup.erl new file mode 100644 index 0000000..a28b5c0 --- /dev/null +++ b/src/pbx_sup.erl @@ -0,0 +1,27 @@ +-module(pbx_sup). + +-behaviour(supervisor). + +%% API +-export([start_link/0]). + +%% Supervisor callbacks +-export([init/1]). + +%% Helper macro for declaring children of supervisor +-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}). + +%% =================================================================== +%% API functions +%% =================================================================== + +start_link() -> + supervisor:start_link({local, ?MODULE}, ?MODULE, []). + +%% =================================================================== +%% Supervisor callbacks +%% =================================================================== + +init([]) -> + {ok, { {one_for_one, 5, 10}, []} }. + -- cgit v1.2.3