blob: ea0ca03bbb865d540f0d8fadaf997711f47da555 [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
Patrick Venturef18bf832018-10-26 18:14:00 -07007int main(int argc, char* argv[])
Deepak Kodihallic4966192018-08-23 02:19:58 -05008{
9 auto bus = sdbusplus::bus::new_default();
10
Patrick Venturef18bf832018-10-26 18:14:00 -070011 phosphor::rsyslog_config::Server serverConf(
12 bus, BUSPATH_REMOTE_LOGGING_CONFIG, RSYSLOG_SERVER_CONFIG_FILE);
Deepak Kodihallic4966192018-08-23 02:19:58 -050013
14 bus.request_name(BUSNAME_SYSLOG_CONFIG);
15
Patrick Venturef18bf832018-10-26 18:14:00 -070016 while (true)
Deepak Kodihallic4966192018-08-23 02:19:58 -050017 {
18 bus.process_discard();
19 bus.wait();
20 }
21
22 return 0;
23}