summaryrefslogtreecommitdiffstats
path: root/phosphor-rsyslog-config/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'phosphor-rsyslog-config/main.cpp')
-rw-r--r--phosphor-rsyslog-config/main.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/phosphor-rsyslog-config/main.cpp b/phosphor-rsyslog-config/main.cpp
new file mode 100644
index 0000000..3e4d928
--- /dev/null
+++ b/phosphor-rsyslog-config/main.cpp
@@ -0,0 +1,23 @@
+#include "config.h"
+#include "server-conf.hpp"
+#include <sdbusplus/bus.hpp>
+
+int main(int argc, char *argv[])
+{
+ auto bus = sdbusplus::bus::new_default();
+
+ phosphor::rsyslog_config::Server
+ serverConf(bus,
+ BUSPATH_REMOTE_LOGGING_CONFIG,
+ RSYSLOG_SERVER_CONFIG_FILE);
+
+ bus.request_name(BUSNAME_SYSLOG_CONFIG);
+
+ while(true)
+ {
+ bus.process_discard();
+ bus.wait();
+ }
+
+ return 0;
+}
OpenPOWER on IntegriCloud