rsyslog: Don't disable systemd StartLimit
It is undesirable to have a service restart continually forever if it
gets stuck in a failure loop. This workaround was added due to
"RestartUnit" being ignored if the rsyslog unit had already failed. A
fix to the "RestartUnit" logic has been added, so that the StartLimit is
reset after a configuration change but before calling "RestartUnit".
This will ensure restarts are reliable after configuration change, but
we don't have rsyslog trying to restart indefinitely.
Change-Id: I8d2d8ec3b2c5b024dbf8e7cda6089e398a819c96
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/recipes-extended/rsyslog/files/rsyslog-override.conf b/recipes-extended/rsyslog/files/rsyslog-override.conf
index faeeae0..458f52f 100644
--- a/recipes-extended/rsyslog/files/rsyslog-override.conf
+++ b/recipes-extended/rsyslog/files/rsyslog-override.conf
@@ -1,6 +1,3 @@
[Unit]
-# This service is restarted when an rsyslog property is set, so
-# disable rate limiting to allow it to always be restarted.
-StartLimitIntervalSec=0
# This file exists only if remote logging has been configured
ConditionPathExists=/etc/rsyslog.d/server.conf