Created
March 23, 2013 20:16
-
-
Save NTCoding/5229196 to your computer and use it in GitHub Desktop.
riak_core_app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -module(riak_core_app). | |
| -behaviour(application). | |
| %% Application callbacks | |
| -export([start/2, prep_stop/1, stop/1]). | |
| %% =================================================================== | |
| %% Application callbacks | |
| %% =================================================================== | |
| start(_StartType, _StartArgs) -> | |
| %% Don't add our system_monitor event handler here. Instead, let | |
| %% riak_core_sysmon_minder start it, because that process can act | |
| %% on any handler crash notification, whereas we cannot. | |
| case application:get_env(riak_core, delayed_start) of | |
| {ok, Delay} -> | |
| lager:info("Delaying riak_core startup as requested"), | |
| timer:sleep(Delay); | |
| _ -> | |
| ok | |
| end, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment