summaryrefslogtreecommitdiff
path: root/src/catlfish_app.erl
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2014-09-22 10:22:10 +0200
committerLinus Nordberg <linus@nordberg.se>2014-09-22 10:22:10 +0200
commit01e20019fa481190a0ac90622d95f214bb7ca755 (patch)
tree5cf904c36657520cc90c5d9f41eefcc51b149f8e /src/catlfish_app.erl
parent813cddd87ffa18ffdc3ff6df54377bb0590fc445 (diff)
parent90af53429cce94dee753441b780a9cf050f5fced (diff)
Merge branch 'map/releasemanagement' into master-origin
Conflicts: ebin/catlfish.app
Diffstat (limited to 'src/catlfish_app.erl')
-rw-r--r--src/catlfish_app.erl29
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..9c9bdad
--- /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.