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