anchor.diff:              supervisor,
               [couch_server_sup]}
           ]},
  -   
   
       % ensure these applications are running
       application:start(ibrowse),
  
positive.code:             || {{Module, Variable}, Value} <- couch_config:all()];
      _ -> ok
      end,
      
      LibDir =
      case couch_config:get("couchdb", "util_driver_dir", null) of
      null ->
          filename:join(code:priv_dir(couch), "lib");
      LibDir0 -> LibDir0
      end,
      
      ok = couch_util:start_driver(LibDir),
      
      BaseChildSpecs =
      {{one_for_all, 10, 3600}, 
          [{couch_config,
  
negative.code:         ("daemons", _) ->
              ?MODULE:stop()
          end, Pid),
  
      unlink(ConfigPid),
  
      io:format("Apache CouchDB has started. Time to relax.~n"),
  
      {ok, Pid}.
  
  start_primary_services() ->
  