diff options
author | Magnus Ahltorp <map@kth.se> | 2014-09-19 18:25:53 +0200 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2014-09-22 10:36:45 +0200 |
commit | 0622260ab677493128e13a98959f69735e6fdd29 (patch) | |
tree | 30f2ef2f826a7ceca83002a7b1628c5b0c81374a /src | |
parent | 813cddd87ffa18ffdc3ff6df54377bb0590fc445 (diff) |
Release management
Diffstat (limited to 'src')
-rw-r--r-- | src/catlfish_app.erl | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/catlfish_app.erl b/src/catlfish_app.erl new file mode 100644 index 0000000..f4b67ad --- /dev/null +++ b/src/catlfish_app.erl @@ -0,0 +1,29 @@ +-module(catlfish_app). + +-behaviour(application). + +%% Application callbacks +-export([start/2, stop/1]). + +%% =================================================================== +%% Application callbacks +%% =================================================================== + +dummy() -> + receive + after + infinity -> + none + end. + +start(_StartType, _StartArgs) -> + io:format("starting catlfish~n", []), + InetsResult = inets:start(httpd, [{proplist_file, "httpd_props.conf"}]), + io:format("catlfish: tried to start inets service:~p~n", [InetsResult]), + Pid = spawn(fun () -> + dummy() + end), + {ok, Pid}. + +stop(_State) -> + ok. |