blob: 22f7b082bc420b8ef308f6a0425ba9c9e2a10f5a [file] [log] [blame]
Deepak Kodihallic4966192018-08-23 02:19:58 -05001#include "config.h"
Patrick Venturef18bf832018-10-26 18:14:00 -07002
Deepak Kodihallic4966192018-08-23 02:19:58 -05003#include "server-conf.hpp"
Patrick Venturef18bf832018-10-26 18:14:00 -07004
Deepak Kodihallic4966192018-08-23 02:19:58 -05005#include <sdbusplus/bus.hpp>
6
William A. Kennington IIIb6b25572021-05-19 17:09:41 -07007#include "config_main.h"
8
Patrick Williams0e734df2021-04-16 20:09:03 -05009int main(int /*argc*/, char* /*argv*/[])
Deepak Kodihallic4966192018-08-23 02:19:58 -050010{
11 auto bus = sdbusplus::bus::new_default();
12
Patrick Venturef18bf832018-10-26 18:14:00 -070013 phosphor::rsyslog_config::Server serverConf(
14 bus, BUSPATH_REMOTE_LOGGING_CONFIG, RSYSLOG_SERVER_CONFIG_FILE);
Deepak Kodihallic4966192018-08-23 02:19:58 -050015
16 bus.request_name(BUSNAME_SYSLOG_CONFIG);
17
Patrick Venturef18bf832018-10-26 18:14:00 -070018 while (true)
Deepak Kodihallic4966192018-08-23 02:19:58 -050019 {
20 bus.process_discard();
21 bus.wait();
22 }
23
24 return 0;
25}