From: gabrielgatu Date: Thu, 28 Jul 2016 13:57:35 +0000 (+0200) Subject: Start elixir application after ejabberd_app:start_apps() X-Git-Tag: 16.08~14^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91865c66c0ce2339156f98db83740f65edc909e6;p=ejabberd Start elixir application after ejabberd_app:start_apps() --- diff --git a/src/ejabberd_app.erl b/src/ejabberd_app.erl index 703614f63..bbeb510dc 100644 --- a/src/ejabberd_app.erl +++ b/src/ejabberd_app.erl @@ -45,6 +45,7 @@ start(normal, _Args) -> write_pid_file(), jid:start(), start_apps(), + start_elixir_application(), ejabberd:check_app(ejabberd), randoms:start(), db_init(), @@ -237,3 +238,9 @@ opt_type(modules) -> Mods) end; opt_type(_) -> [cluster_nodes, loglevel, modules, net_ticktime]. + +start_elixir_application() -> + case application:ensure_started(elixir) of + ok -> ok; + {error, Msg} -> ?ERROR_MSG("Elixir application not started.", []) + end.