summaryrefslogtreecommitdiff
path: root/bin/bbstored/bbstored.cpp
blob: 21a9e5f116c6277c7e3888387aae85c5e8bd112e (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
// --------------------------------------------------------------------------
//
// File
//		Name:    bbstored.cpp
//		Purpose: main file for backup store daemon
//		Created: 2003/08/20
//
// --------------------------------------------------------------------------

#include "Box.h"
#include "BackupStoreDaemon.h"
#include "MainHelper.h"
#include "Logging.h"

#include "MemLeakFindOn.h"

int main(int argc, const char *argv[])
{
	MAINHELPER_START

	Logging::SetProgramName("bbstored");
	Logging::ToConsole(true);
	Logging::ToSyslog (true);

	BackupStoreDaemon daemon;

	#ifdef WIN32
		return daemon.Main(BOX_GET_DEFAULT_BBACKUPD_CONFIG_FILE,
			argc, argv);
	#else
		return daemon.Main(BOX_FILE_BBSTORED_DEFAULT_CONFIG,
			argc, argv);
	#endif
	
	MAINHELPER_END
}