Changeset 2498

Show
Ignore:
Timestamp:
09/04/2009 23:05:28 (17 months ago)
Author:
chris
Message:

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

Location:
box/trunk
Files:
8 modified

Legend:

Unmodified
Added
Removed
  • box/trunk/bin/bbackupd/bbackupd-config.in

    r2127 r2498  
    2020 
    2121Parameters: 
    22     config-dir          is usually @sysconfdir_expanded@/box 
     22    config-dir          is usually @sysconfdir_expanded@/boxbackup 
    2323    backup-mode         is lazy or snapshot: 
    2424        lazy mode       runs continously, uploading files over a specified age 
     
    5858 
    5959# default locations 
    60 my $default_config_location = '@sysconfdir_expanded@/box/bbackupd.conf'; 
     60my $default_config_location = '@sysconfdir_expanded@/boxbackup/bbackupd.conf'; 
    6161 
    6262# command line parameters 
  • box/trunk/bin/bbstored/bbstored-config.in

    r2127 r2498  
    2020 
    2121Parameters: 
    22     config-dir       is usually @sysconfdir_expanded@/box 
     22    config-dir       is usually @sysconfdir_expanded@/boxbackup 
    2323    server-hostname  is the hostname that clients will use to connect to 
    2424                     this server 
     
    4848 
    4949# default locations 
    50 my $default_config_location = '@sysconfdir_expanded@/box/bbstored.conf'; 
     50my $default_config_location = '@sysconfdir_expanded@/boxbackup/bbstored.conf'; 
    5151 
    5252# command line parameters 
  • box/trunk/contrib/debian/bbackupd.in

    r2192 r2498  
    88LONGNAME="Box Backup Client daemon" 
    99BINARY=@sbindir_expanded@/$NAME 
    10 CONFIG=@sysconfdir_expanded@/box/$NAME.conf 
     10CONFIG=@sysconfdir_expanded@/boxbackup/$NAME.conf 
    1111PIDFILE=@localstatedir_expanded@/bbackupd/$NAME.pid 
    1212 
  • box/trunk/contrib/debian/bbstored.in

    r2192 r2498  
    88LONGNAME="Box Backup Server daemon" 
    99BINARY=@sbindir_expanded@/$NAME 
    10 CONFIG=@sysconfdir_expanded@/box/$NAME.conf 
     10CONFIG=@sysconfdir_expanded@/boxbackup/$NAME.conf 
    1111PIDFILE=@localstatedir_expanded@/run/$NAME.pid 
    1212 
  • box/trunk/lib/common/BoxPortsAndFiles.h.in

    r2061 r2498  
    3232                GetDefaultConfigFilePath("bbstored.conf").c_str() 
    3333#else 
    34 #define BOX_FILE_BBACKUPD_DEFAULT_CONFIG "@sysconfdir_expanded@/box/bbackupd.conf" 
    35 #define BOX_FILE_RAIDFILE_DEFAULT_CONFIG "@sysconfdir_expanded@/box/raidfile.conf" 
    36 #define BOX_FILE_BBSTORED_DEFAULT_CONFIG "@sysconfdir_expanded@/box/bbstored.conf" 
     34#define BOX_FILE_BBACKUPD_DEFAULT_CONFIG "@sysconfdir_expanded@/boxbackup/bbackupd.conf" 
     35#define BOX_FILE_RAIDFILE_DEFAULT_CONFIG "@sysconfdir_expanded@/boxbackup/raidfile.conf" 
     36#define BOX_FILE_BBSTORED_DEFAULT_CONFIG "@sysconfdir_expanded@/boxbackup/bbstored.conf" 
     37#define BOX_FILE_BBACKUPD_OLD_CONFIG "@sysconfdir_expanded@/box/bbackupd.conf" 
     38#define BOX_FILE_RAIDFILE_OLD_CONFIG "@sysconfdir_expanded@/box/raidfile.conf" 
     39#define BOX_FILE_BBSTORED_OLD_CONFIG "@sysconfdir_expanded@/box/bbstored.conf" 
    3740#endif 
    3841 
  • box/trunk/lib/raidfile/RaidFileController.h

    r1775 r2498  
    8383public: 
    8484        void Initialise(const std::string& rConfigFilename =  
    85                 "/etc/box/raidfile.conf"); 
     85                "/etc/boxbackup/raidfile.conf"); 
    8686        int GetNumDiscSets() {return mSetList.size();} 
    8787 
  • box/trunk/lib/raidfile/raidfile-config.in

    r2062 r2498  
    2020 
    2121Parameters: 
    22     config-dir        is usually @sysconfdir_expanded@/box 
     22    config-dir        is usually @sysconfdir_expanded@/boxbackup 
    2323    block-size        must be a power of two, and usually the block or 
    2424                      fragment size of your file system 
  • 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);