myapp delete lock Revision 333638663461 (Fri Jan 13 2012 at 08:08) - Diff Link to this snippet: https://friendpaste.com/1NMX9kyo7qep1VJtgUSXKT Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 1234567891011121314151617181920212223242526272829303132%% @author author <author@example.com>%% @copyright YYYY author.%% @doc TEMPLATE.-module(myapp).-author('author <author@example.com>').-export([start/0, stop/0]).ensure_started(App) -> case application:start(App) of ok -> ok; {error, {already_started, App}} -> ok end. %% @spec start() -> ok%% @doc Start the myapp server.start() -> myapp_deps:ensure(), ensure_started(crypto), ensure_started(mnesia), application:start(myapp).%% @spec stop() -> ok%% @doc Stop the myapp server.stop() -> Res = application:stop(myapp), application:stop(mnesia), application:stop(crypto), Res.