Deepak Kodihalli | c496619 | 2018-08-23 02:19:58 -0500 | [diff] [blame] | 1 | #include "config.h" |
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame^] | 2 | |
Deepak Kodihalli | c496619 | 2018-08-23 02:19:58 -0500 | [diff] [blame] | 3 | #include "server-conf.hpp" |
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame^] | 4 | |
Deepak Kodihalli | c496619 | 2018-08-23 02:19:58 -0500 | [diff] [blame] | 5 | #include <sdbusplus/bus.hpp> |
6 | |||||
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame^] | 7 | int main(int argc, char* argv[]) |
Deepak Kodihalli | c496619 | 2018-08-23 02:19:58 -0500 | [diff] [blame] | 8 | { |
9 | auto bus = sdbusplus::bus::new_default(); | ||||
10 | |||||
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame^] | 11 | phosphor::rsyslog_config::Server serverConf( |
12 | bus, BUSPATH_REMOTE_LOGGING_CONFIG, RSYSLOG_SERVER_CONFIG_FILE); | ||||
Deepak Kodihalli | c496619 | 2018-08-23 02:19:58 -0500 | [diff] [blame] | 13 | |
14 | bus.request_name(BUSNAME_SYSLOG_CONFIG); | ||||
15 | |||||
Patrick Venture | f18bf83 | 2018-10-26 18:14:00 -0700 | [diff] [blame^] | 16 | while (true) |
Deepak Kodihalli | c496619 | 2018-08-23 02:19:58 -0500 | [diff] [blame] | 17 | { |
18 | bus.process_discard(); | ||||
19 | bus.wait(); | ||||
20 | } | ||||
21 | |||||
22 | return 0; | ||||
23 | } |