aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_app.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ejabberd_app.erl')
-rw-r--r--src/ejabberd_app.erl13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/ejabberd_app.erl b/src/ejabberd_app.erl
index 9d127e748..890ab6f90 100644
--- a/src/ejabberd_app.erl
+++ b/src/ejabberd_app.erl
@@ -255,7 +255,12 @@ register_elixir_config_hooks() ->
end.
start_elixir_application() ->
- case application:ensure_started(elixir) of
- ok -> ok;
- {error, _Msg} -> ?ERROR_MSG("Elixir application not started.", [])
- end.
+ case ejabberd_config:is_elixir_enabled() of
+ true ->
+ case application:ensure_started(elixir) of
+ ok -> ok;
+ {error, _Msg} -> ?ERROR_MSG("Elixir application not started.", [])
+ end;
+ _ ->
+ ok
+ end.