anchor.diff:      a_start(App, Type);
   start_ok(App, _Type, {error, Reason}) ->
       erlang:error({app_start_failed, App, Reason}).
  -
  -redo_opts() ->
  -    case os:getenv("LOGPLEX_CONFIG_REDIS_URL") of
  -        false -> [];
  -        Url ->
  -            ParsedUrl = redo_uri:parse(Url),
  -            application:set_env(?APP, config_redis_url, ParsedUrl)
  -    end.
  
positive.code:         _ ->
              ok
      end.
  
  read_environment() ->
      [case os:getenv(SK) of
           false -> ok;
           Val ->
               application:set_env(?APP, K, Val)
       end
       || {K, SK} <- [ {instance_name, "INSTANCE_NAME"} ]].
  
  boot_pagerduty() ->
      case config(cloud_name) of
  
negative.code:                       ,{cookie, ["LOGPLEX_COOKIE"]}
                        %% ERL_CRASH_DUMP read by setup_crashdumps
                        %% git_branch cached by read_git_branch()
                        ,{instance_name, ["INSTANCE_NAME"]}
                        ,{local_ip, ["LOCAL_IP"]}
                        ,{logplex_shard_urls, ["LOGPLEX_SHARD_URLS"]}
                        ,{pagerduty, ["PAGERDUTY"],
                          optional}
                        ,{pagerduty_key, ["ROUTING_PAGERDUTY_SERVICE_KEY"],
                          optional}
                        ,{redgrid_redis_url, ["LOGPLEX_CONFIG_REDIS_URL",
                                              "LOGPLEX_STATS_REDIS_URL"]}
                       ]),
      ok.
  
  