anchor.diff:  	ensure_started(cowboy),
   	application:start(egs).
   
  -%% @spec stop() -> ok
  -%% @doc Stop the EGS server.
  +-spec stop() -> ok.
   stop() ->
   	Res = application:stop(egs),
   	ok = application:stop(cowboy),
  
positive.code: %%	along with EGS.  If not, see <http://www.gnu.org/licenses/>.
  
  -module(egs).
  -export([start/0, stop/0, global/1, warp/4, warp/5]).
  
  %% @spec ensure_started(App) -> ok
  %% @doc Make sure the given App is started.
  ensure_started(App) ->
  	case application:start(App) of
  		ok -> ok;
  		{error, {already_started, App}} -> ok
  	end.
  
  %% @spec start() -> ok
  %% @doc Start the EGS server.
  start() ->
  	ensure_started(crypto),
  	ensure_started(public_key),
  
negative.code: %% @author Loïc Hoguin <essen@dev-extend.eu>
  %% @copyright 2010-2011 Loïc Hoguin.
  %% @doc EGS startup code and utility functions.
  %%
  %%	This file is part of EGS.
  %%
  