sample.erl 257 B

123456789
  1. -module(sample).
  2. -compile(export_all).
  3. -behaviour(application).
  4. -behaviour(supervisor).
  5. -export([start/2, stop/1, init/1]).
  6. start(_, _) -> supervisor:start_link({local, ?MODULE}, ?MODULE, []).
  7. stop(_) -> ok.
  8. init([]) -> {ok, { {one_for_one, 5, 10}, []} }.