Skip to content

Instantly share code, notes, and snippets.

@archaelus
Created August 19, 2008 16:40
Show Gist options
  • Save archaelus/6201 to your computer and use it in GitHub Desktop.
Save archaelus/6201 to your computer and use it in GitHub Desktop.
-module(orbited_app).
-behaviour(application).
-export([start/0, start/2, stop/1]).
start() ->
application:load(orbited),
{ok, Deps} = application:get_key(orbited, applications),
lists:map(fun application:start/1,
Deps),
application:start(orbited).
start(_Type, Args) ->
error_logger:info_msg("~p:start Type=~p Args=~p\n", [?MODULE, _Type, Args]),
orbited_sup:start_link(Args).
stop(_State) ->
error_logger:info_msg("~p:stop State=~p\n", [?MODULE, _State]),
ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment