summaryrefslogtreecommitdiff
path: root/meta-intel-openbmc/meta-common
diff options
context:
space:
mode:
authorZbigniew Kurzynski <zbigniew.kurzynski@intel.com>2022-04-11 19:00:30 +0300
committerZbigniew Kurzynski <zbigniew.kurzynski@intel.com>2022-04-19 11:47:40 +0300
commite4b51dca811d7e003a72caf44d0963b8b0ac52b1 (patch)
tree9bc3268e893edbc18a57b427ab33710b77793abe /meta-intel-openbmc/meta-common
parentfd552cb836e48ab3cd1641fbf509ec86e138dc9d (diff)
downloadopenbmc-e4b51dca811d7e003a72caf44d0963b8b0ac52b1.tar.xz
meta-intel-openbmc: Use wildcard for rsyslog configs
After this change the logrotate app will use and rotate all config files with extension .rsyslog instead of specific one. This should allow for easier configuration extension especially on down-stream projects. Tested: I manually created a new config file under location: /etc/logrotate.d/ with extension xx.rsyslog After calling this command /usr/sbin/logrotate -d /etc/logrotate.d/*.rsyslog I get following message, where first two entries regards original config files and the third one is my testing file. rotating pattern: /var/log/ipmi_sel … rotating pattern: /var/log/redfish … rotating pattern: /var/log/my_new_events Signed-off-by: Zbigniew Kurzynski <zbigniew.kurzynski@intel.com> Change-Id: Ic10c6eb211221291916e6ba6537ab9bf71efe178
Diffstat (limited to 'meta-intel-openbmc/meta-common')
-rw-r--r--meta-intel-openbmc/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-intel-openbmc/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh b/meta-intel-openbmc/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh
index 5a8c5cc10d..0428db29f1 100644
--- a/meta-intel-openbmc/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh
+++ b/meta-intel-openbmc/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.sh
@@ -2,7 +2,7 @@
while true; do
sleep 60
- /usr/sbin/logrotate /etc/logrotate.d/logrotate.rsyslog
+ /usr/sbin/logrotate /etc/logrotate.d/*.rsyslog
ec=$?
if [ $ec -ne 0 ] ; then
echo "logrotate failed ($ec)"