summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-extended/rsyslog
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2022-03-17 13:25:00 +0300
committerPatrick Williams <patrick@stwcx.xyz>2022-03-29 20:37:03 +0300
commit9862e00d29c29318c065385de0990e682820fabe (patch)
treedc8012c87b2d6e6bebd7d1745db664eea342b428 /meta-phosphor/recipes-extended/rsyslog
parentbef990f88c404ae96dd43cc051b977f1e97ad8dd (diff)
downloadopenbmc-9862e00d29c29318c065385de0990e682820fabe.tar.xz
rsyslog: fix default server config
Directory /etc/rsyslog.d/ is expected to hold several *.conf files each serving an independent purpose, all processed in order for each syslog message. The deprecated action ~ means "discard action is carried out, the received message is immediately discarded. No further processing of it occurs". Thus the config files that happen to be alphabetically after server.conf are not going to ever see any messages, and that is unexpected and confusing. Fix by shipping a config which writes any message to /dev/null. This is needed to avoid error 2103 in default configuration where no other output actions are specified for rsyslog. Also enable processing of other *.conf file which might be shipped by other packages or added by an end user. This should also be accomplished by a similar change to phosphor-logging so that it wouldn't revert to wrong behaviour when sending to remote syslog is disabled. Signed-off-by: Paul Fertser <fercerpav@gmail.com> Change-Id: I5da9a46df1b8cf1326bb1a7b93af18cfc568dee8
Diffstat (limited to 'meta-phosphor/recipes-extended/rsyslog')
-rw-r--r--meta-phosphor/recipes-extended/rsyslog/rsyslog/rsyslog.conf2
-rw-r--r--meta-phosphor/recipes-extended/rsyslog/rsyslog/server.conf2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta-phosphor/recipes-extended/rsyslog/rsyslog/rsyslog.conf b/meta-phosphor/recipes-extended/rsyslog/rsyslog/rsyslog.conf
index 40b3f294f2..ebdf14dfc3 100644
--- a/meta-phosphor/recipes-extended/rsyslog/rsyslog/rsyslog.conf
+++ b/meta-phosphor/recipes-extended/rsyslog/rsyslog/rsyslog.conf
@@ -1,3 +1,3 @@
$ModLoad imuxsock
-$IncludeConfig /etc/rsyslog.d/server.conf
+$IncludeConfig /etc/rsyslog.d/*.conf
diff --git a/meta-phosphor/recipes-extended/rsyslog/rsyslog/server.conf b/meta-phosphor/recipes-extended/rsyslog/rsyslog/server.conf
index cf47ba3060..d2a7c5ea3f 100644
--- a/meta-phosphor/recipes-extended/rsyslog/rsyslog/server.conf
+++ b/meta-phosphor/recipes-extended/rsyslog/rsyslog/server.conf
@@ -1 +1 @@
-*.* ~
+*.* /dev/null