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: setup_redgrid_vals() ->
      application:load(redgrid),
      application:set_env(redgrid, local_ip, config(local_ip)),
      application:set_env(redgrid, redis_url, config(redis_stats_url)),
      application:set_env(redgrid, domain, config(cloud_name)),
      ok.
  
  setup_redis_shards() ->
      URLs = case os:getenv("LOGPLEX_SHARD_URLS") of
                 UrlString when is_list(UrlString), UrlString =/= [] ->
                     string:tokens(UrlString, ",");
                 _ ->
                     case os:getenv("LOGPLEX_CONFIG_REDIS_URL") of
                         false -> ["redis://127.0.0.1:6379/"];
                         Url -> [Url]
                     end
             end,
      application:set_env(logplex, logplex_shard_urls,
                          logplex_shard:redis_sort(URLs)).
  
negative.code:         _ ->
              ok
      end.
  
  boot_pagerduty() ->
      case config(cloud_name) of
  