Ignore:
Timestamp:
10/04/2009 00:05:28 (3 years ago)
Author:
chris
Message:

Change default location for config files from /etc/box to
/etc/boxbackup, thanks to Reinhard Tartler and the Debian Project.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/Daemon.cpp

    r2480 r2498  
    337337        { 
    338338                mConfigFileName = argv[optind]; optind++; 
     339                mHaveConfigFile = true; 
    339340        } 
    340341 
     
    376377        try 
    377378        { 
     379                if (!FileExists(rConfigFileName.c_str())) 
     380                { 
     381                        BOX_FATAL("The main configuration file for " << 
     382                                DaemonName() << " was not found: " << 
     383                                rConfigFileName); 
     384                        if (!mHaveConfigFile) 
     385                        { 
     386                                BOX_WARNING("The default configuration " 
     387                                        "directory has changed from /etc/box " 
     388                                        "to /etc/boxbackup"); 
     389                        } 
     390                        return false; 
     391                } 
     392                         
    378393                apConfig = Configuration::LoadAndVerify(rConfigFileName, 
    379394                        GetConfigVerify(), errors); 
Note: See TracChangeset for help on using the changeset viewer.