rsyslog-policy: Add rsyslog-override.conf

Create a rsyslog-policy recipe to add an override to the rsyslog
systemd service file to disable rate limiting.

The reason is that when a port is set by the user, the rsyslog restarts,
and if it restarts more than the value set in the StartLimitBurst within
an amount of time, the service file won't be restarted again. OpenBMC has
a default value of 2, which causes the rsyslog service to stop after 2 tries:
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/systemd-policy/phosphor-systemd-policy/service-restart-policy.conf

Tested:
  Set a valid rsyslog address:
  curl -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data": "x.x.xx.xx"}' https://${bmc}/xyz/openbmc_project/logging/config/remote/attr/Address

  Then ran the following loop for an hour and observed the 'System Logging Service'
  being restarted with no failures:
  $ while true
  > do
  > curl -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data": 556}' https://${bmc}/xyz/openbmc_project/logging/config/remote/attr/Port
  > sleep 1
  > curl -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data": 557}' https://${bmc}/xyz/openbmc_project/logging/config/remote/attr/Port
  > sleep 1
  > curl -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data": 558}' https://${bmc}/xyz/openbmc_project/logging/config/remote/attr/Port
  > sleep 1
  > done

Change-Id: If82d0e6eee2f0d3dc786d2e6a0d00fae41f12e29
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
3 files changed
tree: 510a39c4b81cb2de1d7526cd4868c4c6ac02c5dd
  1. aspeed-layer/
  2. classes/
  3. conf/
  4. nuvoton-layer/
  5. recipes-connectivity/
  6. recipes-core/
  7. recipes-devtools/
  8. recipes-extended/
  9. recipes-phosphor/
  10. recipes-support/
  11. recipes-textproc/
  12. COPYING.apache-2.0
  13. COPYING.MIT
  14. LICENSE
  15. MAINTAINERS
  16. README.md
  17. recipes.txt
README.md

OpenBMC

meta-phosphor is the OpenBMC layer. This layer should be included for all OpenBMC systems. The OpenBMC layer contains content which is shared between all OpenBMC systems.