diff options
author | Vincent Ambo <vincent@kivra.com> | 2016-02-08T20·47+0100 |
---|---|---|
committer | Vincent Ambo <vincent@kivra.com> | 2016-02-08T20·47+0100 |
commit | 7d035bab9d2a5b7c93104149d9f7993e76d416f0 (patch) | |
tree | 3369ff55fa72b17fc7b438131e4cf7b93eb9086f /src |
Initial check-in
Diffstat (limited to 'src')
-rw-r--r-- | src/stomp.erl_app.erl | 11 | ||||
-rw-r--r-- | src/stomp.erl_sup.erl | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/src/stomp.erl_app.erl b/src/stomp.erl_app.erl new file mode 100644 index 000000000000..78a6ecc92f2c --- /dev/null +++ b/src/stomp.erl_app.erl @@ -0,0 +1,11 @@ +-module(stomp.erl_app). +-behaviour(application). + +-export([start/2]). +-export([stop/1]). + +start(_Type, _Args) -> + stomp.erl_sup:start_link(). + +stop(_State) -> + ok. diff --git a/src/stomp.erl_sup.erl b/src/stomp.erl_sup.erl new file mode 100644 index 000000000000..9c41cba1f202 --- /dev/null +++ b/src/stomp.erl_sup.erl @@ -0,0 +1,12 @@ +-module(stomp.erl_sup). +-behaviour(supervisor). + +-export([start_link/0]). +-export([init/1]). + +start_link() -> + supervisor:start_link({local, ?MODULE}, ?MODULE, []). + +init([]) -> + Procs = [], + {ok, {{one_for_one, 1, 5}, Procs}}. |