blob: 3814751e2bc1aa64b859601f06b54c0267f07d5d [file] [log] [blame]
Deepak Kodihallic4966192018-08-23 02:19:58 -05001#include "config.h"
Patrick Venturef18bf832018-10-26 18:14:00 -07002
Patrick Williams2544b412022-10-04 08:41:06 -05003#include "config_main.h"
4
Deepak Kodihallic4966192018-08-23 02:19:58 -05005#include "server-conf.hpp"
Patrick Venturef18bf832018-10-26 18:14:00 -07006
Deepak Kodihallic4966192018-08-23 02:19:58 -05007#include <sdbusplus/bus.hpp>
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}