mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Disable default alarm handler
This commit is contained in:
parent
47c2118fa7
commit
a0607f6740
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@
|
||||||
-spec start() -> ok.
|
-spec start() -> ok.
|
||||||
start() ->
|
start() ->
|
||||||
gen_event:add_handler(alarm_handler, ?MODULE, []),
|
gen_event:add_handler(alarm_handler, ?MODULE, []),
|
||||||
|
gen_event:swap_handler(alarm_handler, {alarm_handler, swap}, {?MODULE, []}),
|
||||||
application:load(os_mon),
|
application:load(os_mon),
|
||||||
application:set_env(os_mon, start_cpu_sup, false),
|
application:set_env(os_mon, start_cpu_sup, false),
|
||||||
application:set_env(os_mon, start_disksup, false),
|
application:set_env(os_mon, start_disksup, false),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue