Skip to content

Commit

Permalink
It compiles
Browse files Browse the repository at this point in the history
  • Loading branch information
athoune committed Aug 10, 2010
1 parent ef7a34d commit 98fe4f3
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 0 deletions.
Binary file added rebar
Binary file not shown.
12 changes: 12 additions & 0 deletions src/syslog.app.src
@@ -0,0 +1,12 @@
{application, syslog,
[
{description, "Syslog for erlang"},
{vsn, "0.0.1"},
{registered, []},
{applications, [
kernel,
stdlib
]},
{mod, { erlsyslog_app, []}},
{env, []}
]}.
16 changes: 16 additions & 0 deletions src/syslog_app.erl
@@ -0,0 +1,16 @@
-module(syslog_app).

-behaviour(application).

%% Application callbacks
-export([start/2, stop/1]).

%% ===================================================================
%% Application callbacks
%% ===================================================================

start(_StartType, _StartArgs) ->
erlang_syslog_sup:start_link().

stop(_State) ->
ok.
28 changes: 28 additions & 0 deletions src/syslog_sup.erl
@@ -0,0 +1,28 @@

-module(syslog_sup).

-behaviour(supervisor).

%% API
-export([start_link/0]).

%% Supervisor callbacks
-export([init/1]).

%% Helper macro for declaring children of supervisor
-define(CHILD(I, Type), {I, {I, start_link, []}, permanent, 5000, Type, [I]}).

%% ===================================================================
%% API functions
%% ===================================================================

start_link() ->
supervisor:start_link({local, ?MODULE}, ?MODULE, []).

%% ===================================================================
%% Supervisor callbacks
%% ===================================================================

init([]) ->
{ok, { {one_for_one, 5, 10}, []} }.

0 comments on commit 98fe4f3

Please sign in to comment.