summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2014-09-19 18:25:53 +0200
committerMagnus Ahltorp <map@kth.se>2014-09-19 18:25:53 +0200
commit90af53429cce94dee753441b780a9cf050f5fced (patch)
treeed3859b9d4d18f407e17bd19dcac0d5f563f16d2 /src
parentb9dfa6adff4fbfd68b7a3d7477f0f410e8620e15 (diff)
Release management
Diffstat (limited to 'src')
-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..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.