parent
c4d76dec7d
commit
739a1cfcb0
|
@ -12,11 +12,14 @@
|
|||
|
||||
-export([start/0, init/0]).
|
||||
|
||||
-include("ejabberd.hrl").
|
||||
|
||||
start() ->
|
||||
spawn(?MODULE, init, []).
|
||||
|
||||
init() ->
|
||||
register(ejabberd, self()),
|
||||
error_logger:logfile({open, ?ERROR_LOG_PATH}),
|
||||
randoms:start(),
|
||||
ok = erl_ddll:load_driver(".", expat_erl),
|
||||
Port = open_port({spawn, expat_erl}, [binary]),
|
||||
|
|
|
@ -22,4 +22,5 @@
|
|||
|
||||
-define(MSGS_DIR, "msgs").
|
||||
-define(CONFIG_PATH, "ejabberd.cfg").
|
||||
-define(ERROR_LOG_PATH, "error.log").
|
||||
|
||||
|
|
Loading…
Reference in New Issue