summaryrefslogtreecommitdiffstats
path: root/phosphor-rsyslog-config/server-conf.hpp
Commit message (Collapse)AuthorAgeFilesLines
* add .clang-formatPatrick Venture2018-10-261-87/+85
| | | | | Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52 Signed-off-by: Patrick Venture <venture@google.com>
* phosphor-rsyslog-conf: react to hostname changeDeepak Kodihalli2018-10-171-1/+18
| | | | | | | | | | | | | | The rsyslog client caches the hostname when it starts up (hostname is included in logs that are streamed out). If someone changes hostname via REST API for example, the same won't reflect in rsyslog logs at the server. Listen to the hostname changed D-Bus signal from systemd, and restart rsyslogd when this happens. This ensures logs are streamed out with the updated hostname. Change-Id: Ied2b401e621314ef7c25e97dc93f86a429fb4077 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* phoshor-rsyslog-config: wrap utils::restartDeepak Kodihalli2018-08-311-0/+4
| | | | | | | | Provide a virtual wrapper around utils::restart in class Server. This allows mocking in tests. Change-Id: I79a229eaaaa17860959b8025eb8c152362738acf Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* phosphor-rsyslog-conf: implement restoreDeepak Kodihalli2018-08-291-1/+18
| | | | | | | | Upon startup, if a remote logging config exists, relay that information into appropriate D-Bus properties. Change-Id: Ib873667a50f0c8a6af6a3b571f68d6075808ed10 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* rsyslog-conf: add validation and error handlingDeepak Kodihalli2018-08-291-0/+6
| | | | | | | Validate server IP address. Handle exceptions. Change-Id: I6da9949dbf90dd12853afca8050b68b3aaad144e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add application to configure rsyslogDeepak Kodihalli2018-08-291-0/+76
The application implements the xyz.openbmc_project.Network.Client D-Bus interface to set a remote rsyslog server's address and port in the rsyslog config file. This lets us configure rsyslog to be able to stream out logs. TODO: Exception handling and validation will be handled in subsequent commits. Change-Id: I8917daab3f0de1806d2f1aafe99cb3a872f19184 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
OpenPOWER on IntegriCloud