2002-11-18 21:39:47 +01:00
|
|
|
%%%----------------------------------------------------------------------
|
|
|
|
%%% 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').
|
|
|
|
-vsn('$Revision$ ').
|
|
|
|
|
2003-12-28 21:59:21 +01:00
|
|
|
-export([start/0, stop/0,
|
|
|
|
get_so_path/0]).
|
2003-01-14 18:38:03 +01:00
|
|
|
|
2002-11-18 21:39:47 +01:00
|
|
|
start() ->
|
2003-02-01 21:21:28 +01:00
|
|
|
application:start(ejabberd).
|
2002-11-20 21:19:20 +01:00
|
|
|
|
2003-02-01 21:21:28 +01:00
|
|
|
stop() ->
|
|
|
|
application:stop(ejabberd).
|
2002-11-20 21:19:20 +01:00
|
|
|
|
2002-11-23 21:55:05 +01:00
|
|
|
|
2003-12-28 21:59:21 +01:00
|
|
|
get_so_path() ->
|
|
|
|
case os:getenv("EJABBERD_SO_PATH") of
|
|
|
|
false ->
|
|
|
|
".";
|
|
|
|
Path ->
|
|
|
|
Path
|
|
|
|
end.
|