summaryrefslogtreecommitdiff
path: root/deps/netlink/src/netlink_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'deps/netlink/src/netlink_sup.erl')
-rw-r--r--deps/netlink/src/netlink_sup.erl36
1 files changed, 36 insertions, 0 deletions
diff --git a/deps/netlink/src/netlink_sup.erl b/deps/netlink/src/netlink_sup.erl
new file mode 100644
index 0000000..0d5a5d7
--- /dev/null
+++ b/deps/netlink/src/netlink_sup.erl
@@ -0,0 +1,36 @@
+%%%---- BEGIN COPYRIGHT -------------------------------------------------------
+%%%
+%%% Copyright (C) 2012 Feuerlabs, Inc. All rights reserved.
+%%%
+%%% This Source Code Form is subject to the terms of the Mozilla Public
+%%% License, v. 2.0. If a copy of the MPL was not distributed with this
+%%% file, You can obtain one at http://mozilla.org/MPL/2.0/.
+%%%
+%%%---- END COPYRIGHT ---------------------------------------------------------
+
+-module(netlink_sup).
+
+-behaviour(supervisor).
+
+%% API
+-export([start_link/0]).
+
+%% Supervisor callbacks
+-export([init/1]).
+
+%% ===================================================================
+%% API functions
+%% ===================================================================
+
+start_link() ->
+ supervisor:start_link({local, ?MODULE}, ?MODULE, []).
+
+%% ===================================================================
+%% Supervisor callbacks
+%% ===================================================================
+
+init([]) ->
+ C = {netlink, {netlink, start_link, []},
+ permanent, 5000, worker, [netlink]},
+ {ok, { {one_for_one, 5, 10}, [C]}}.
+