Christopher Piro | efd5eec | 2007-10-02 01:33:37 +0000 | [diff] [blame] | 1 | %%% Copyright (c) 2007- Facebook |
| 2 | %%% Distributed under the Thrift Software License |
| 3 | %%% |
| 4 | %%% See accompanying file LICENSE or visit the Thrift site at: |
| 5 | %%% http://developers.facebook.com/thrift/ |
| 6 | |
| 7 | -module(thrift_app). |
| 8 | |
| 9 | -export([start/2, stop/1]). |
| 10 | -behaviour(application). |
| 11 | |
| 12 | -include("thrift.hrl"). |
| 13 | |
| 14 | %%% |
| 15 | %%% behavior definition |
| 16 | %%% |
| 17 | |
| 18 | start(_Type, _StartArgs) -> |
| 19 | io:format("starting thrift~n"), |
| 20 | thrift_logger:install(), |
| 21 | {ok, Sup} = thrift_app_sup:start_link(), |
| 22 | {ok, Sup}. |
| 23 | |
| 24 | stop(_State) -> |
| 25 | ok. |