From 32d16e2b02bd9ef112107ae5408a1f8fb7fc92c1 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 21 Dec 2019 01:20:41 +0000 Subject: chore(stomp.erl): Prepare for depot merge --- net/stomp_erl/src/stomp_sup.erl | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 net/stomp_erl/src/stomp_sup.erl (limited to 'net/stomp_erl/src/stomp_sup.erl') diff --git a/net/stomp_erl/src/stomp_sup.erl b/net/stomp_erl/src/stomp_sup.erl new file mode 100644 index 000000000000..3a298bc9bf8b --- /dev/null +++ b/net/stomp_erl/src/stomp_sup.erl @@ -0,0 +1,22 @@ +-module(stomp_sup). +-behaviour(supervisor). + +-export([start_link/0]). +-export([init/1]). + +start_link() -> + supervisor:start_link({local, ?MODULE}, ?MODULE, []). + +init([]) -> + Procs = [stomp_spec()], + {ok, {{one_for_one, 1, 5}, Procs}}. + +%% Private + +stomp_spec() -> + #{id => stomp_proc, + start => {stomp_worker, start_link, []}, + restart => permanent, + shutdown => 5000, + type => worker, + module => [stomp_worker]}. -- cgit 1.4.1