25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Disable default alarm handler

This commit is contained in:
Evgeniy Khramtsov 2017-12-18 12:15:49 +03:00
parent 47c2118fa7
commit a0607f6740

View File

@ -60,6 +60,7 @@
-spec start() -> ok.
start() ->
gen_event:add_handler(alarm_handler, ?MODULE, []),
gen_event:swap_handler(alarm_handler, {alarm_handler, swap}, {?MODULE, []}),
application:load(os_mon),
application:set_env(os_mon, start_cpu_sup, false),
application:set_env(os_mon, start_disksup, false),