source: box/trunk/lib/common/BoxPortsAndFiles.h.in @ 2694

Revision 2694, 1.6 KB checked in by chris, 2 years ago (diff)

Replace BOX_FILE_BBACKUPD_DEFAULT_CONFIG with
BOX_GET_DEFAULT_BBACKUPD_CONFIG_FILE.

  • Property svn:eol-style set to native
Line 
1// --------------------------------------------------------------------------
2//
3// File
4//              Name:    BoxPortsAndFiles.h
5//              Purpose: Central list of which tcp/ip ports and hardcoded file locations
6//              Created: 2003/08/20
7//
8// --------------------------------------------------------------------------
9
10#ifndef BOXPORTSANDFILES__H
11#define BOXPORTSANDFILES__H
12
13#define BOX_PORT_BASE           2200
14
15
16// Backup store daemon
17#define BOX_PORT_BBSTORED                       (BOX_PORT_BASE+1)
18#define BOX_PORT_BBSTORED_TEST                  22011
19
20// directory within the RAIDFILE root for the backup store daemon
21#define BOX_RAIDFILE_ROOT_BBSTORED              "backup"
22
23// configuration file paths
24#ifdef WIN32
25        // no default config file path, use these macros to call
26        // GetDefaultConfigFilePath() instead.
27
28        #define BOX_GET_DEFAULT_BBACKUPD_CONFIG_FILE \
29                GetDefaultConfigFilePath("bbackupd.conf").c_str()
30        #define BOX_GET_DEFAULT_RAIDFILE_CONFIG_FILE \
31                GetDefaultConfigFilePath("raidfile.conf").c_str()
32        #define BOX_GET_DEFAULT_BBSTORED_CONFIG_FILE \
33                GetDefaultConfigFilePath("bbstored.conf").c_str()
34#else
35        #define BOX_FILE_BBACKUPD_OLD_CONFIG "@sysconfdir_expanded@/box/bbackupd.conf"
36        #define BOX_FILE_RAIDFILE_OLD_CONFIG "@sysconfdir_expanded@/box/raidfile.conf"
37        #define BOX_FILE_BBSTORED_OLD_CONFIG "@sysconfdir_expanded@/box/bbstored.conf"
38        #define BOX_GET_DEFAULT_BBACKUPD_CONFIG_FILE \
39                std::string("@sysconfdir_expanded@/boxbackup/bbackupd.conf")
40        #define BOX_GET_DEFAULT_RAIDFILE_CONFIG_FILE \
41                std::string("@sysconfdir_expanded@/boxbackup/raidfile.conf")
42        #define BOX_GET_DEFAULT_BBSTORED_CONFIG_FILE \
43                std::string("@sysconfdir_expanded@/boxbackup/bbstored.conf")
44#endif
45
46#endif // BOXPORTSANDFILES__H
47
Note: See TracBrowser for help on using the repository browser.