summaryrefslogtreecommitdiffstats
path: root/phosphor-rsyslog-config/server-conf.cpp
Commit message (Collapse)AuthorAgeFilesLines
* rsyslogd: don't start without actionsDeepak Kodihalli2019-01-111-2/+20
| | | | | | | | | | | | | Rsyslog is currently used only for remote logging. The daemon would run though (started by systemd) even when remote logging has not been configured. In other words, it would run without any actions. With Yocto 2.6, rsyslogd won't run without any actions. Hence, rsyslogd is now started only on the condition that the remote logging config file is present. Change-Id: Iae11d6912e60765ecb774b663d44b4e3c6f381a3 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* minor cleanup, std namespacingPatrick Venture2018-11-011-1/+3
| | | | | | | Added std namespace to places where there is a cpp version. Change-Id: I60a05a7c9cdcd79cfffc3c4968005fcbe34acf81 Signed-off-by: Patrick Venture <venture@google.com>
* add .clang-formatPatrick Venture2018-10-261-9/+8
| | | | | Change-Id: I2c36b7886a25d0b235693b0776019d29608e1d52 Signed-off-by: Patrick Venture <venture@google.com>
* phoshor-rsyslog-config: wrap utils::restartDeepak Kodihalli2018-08-311-1/+6
| | | | | | | | 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/+23
| | | | | | | | 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-10/+82
| | | | | | | Validate server IP address. Handle exceptions. Change-Id: I6da9949dbf90dd12853afca8050b68b3aaad144e Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* phosphor-ryslog-conf: add way to disable loggingDeepak Kodihalli2018-08-291-4/+22
| | | | | | | | Remote logging via rsyslog can be disabled by writing 0 to the port, or an empty string to the address. Change-Id: I50bce3ff008af1b9c488a09a2b36c01abbe5497d Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
* Add application to configure rsyslogDeepak Kodihalli2018-08-291-0/+42
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