aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eldap/src/eldap_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/eldap/src/eldap_sup.erl')
-rw-r--r--lib/eldap/src/eldap_sup.erl28
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/eldap/src/eldap_sup.erl b/lib/eldap/src/eldap_sup.erl
new file mode 100644
index 0000000000..1a93bd15b7
--- /dev/null
+++ b/lib/eldap/src/eldap_sup.erl
@@ -0,0 +1,28 @@
+
+-module(eldap_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}, []} }.
+