Kea
1.5.0
lfc/main.cc
Go to the documentation of this file.
1
// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
2
//
3
// This Source Code Form is subject to the terms of the Mozilla Public
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
#include <config.h>
8
#include <
lfc/lfc_controller.h
>
9
#include <
exceptions/exceptions.h
>
10
#include <
log/logger_support.h
>
11
#include <
log/logger_manager.h
>
12
#include <boost/exception/diagnostic_information.hpp>
13
#include <boost/exception_ptr.hpp>
14
#include <iostream>
15
16
using namespace
std;
17
using namespace
isc::lfc
;
18
25
int
main
(
int
argc,
char
* argv[]) {
26
int
ret = EXIT_SUCCESS;
27
LFCController
lfc_controller;
28
29
// Launch the controller passing in command line arguments.
30
// Exit program with the controller's return code.
31
try
{
32
// 'false' value disables test mode.
33
lfc_controller.
launch
(argc, argv,
false
);
34
35
}
catch
(
const
boost::exception& ex) {
36
std::cerr << boost::diagnostic_information(ex) << std::endl;
37
ret = EXIT_FAILURE;
38
39
}
catch
(
const
std::exception& ex) {
40
std::cerr <<
"Service failed: "
<< ex.what() << std::endl;
41
ret = EXIT_FAILURE;
42
}
43
44
return
(ret);
45
}
main
int main(int argc, char *argv[])
This file contains the entry point (main() function) for the standard LFC process,...
Definition:
lfc/main.cc:25
logger_manager.h
isc::lfc::LFCController::launch
void launch(int argc, char *argv[], const bool test_mode)
Acts as the primary entry point to start execution of the process.
Definition:
lfc_controller.cc:62
isc::lfc::LFCController
Process controller for LFC process.
Definition:
lfc_controller.h:37
exceptions.h
lfc_controller.h
isc::lfc
Definition:
lfc_controller.cc:41
logger_support.h
Logging initialization functions.
src
bin
lfc
main.cc
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18