mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
d625fc80fc
'vsn' because it doesn't provide any worth feature, and it difficults hot code update (EJAB-440) SVN Revision: 1044
34 lines
726 B
Erlang
34 lines
726 B
Erlang
%%%----------------------------------------------------------------------
|
|
%%% File : ejabberd.erl
|
|
%%% Author : Alexey Shchepin <alexey@sevcom.net>
|
|
%%% Purpose :
|
|
%%% Created : 16 Nov 2002 by Alexey Shchepin <alexey@sevcom.net>
|
|
%%% Id : $Id$
|
|
%%%----------------------------------------------------------------------
|
|
|
|
-module(ejabberd).
|
|
-author('alexey@sevcom.net').
|
|
|
|
-export([start/0, stop/0,
|
|
get_so_path/0]).
|
|
|
|
start() ->
|
|
application:start(ejabberd).
|
|
|
|
stop() ->
|
|
application:stop(ejabberd).
|
|
|
|
|
|
get_so_path() ->
|
|
case os:getenv("EJABBERD_SO_PATH") of
|
|
false ->
|
|
case code:priv_dir(ejabberd) of
|
|
{error, _} ->
|
|
".";
|
|
Path ->
|
|
filename:join([Path, "lib"])
|
|
end;
|
|
Path ->
|
|
Path
|
|
end.
|