commit | 7b0ef8a7ffc02cfaac4b67ca321db8d3025aecaa | [log] [tgz] |
---|---|---|
author | Jason M. Bills <jason.m.bills@linux.intel.com> | Tue Dec 10 10:41:10 2019 -0800 |
committer | Jason M. Bills <jason.m.bills@linux.intel.com> | Tue Dec 10 11:37:01 2019 -0800 |
tree | 45840291ef6ae0c6133bae8891a9adde8c140fc4 | |
parent | 89efcbb081b11050f8532addd4521e17afede3d6 [diff] |
meta-intel: rsyslog: Use a monotonic timer for log rotation This changes to a monotonic timer for log rotation, so it will not be affected by changes in calendar time. Tested: Confirmed that the log rotation runs every 60 seconds. Change-Id: If1a479557821faa0d2875b2c8dbf8675edec9fef Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
diff --git a/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer b/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer index 148f8e4..ae1185e 100644 --- a/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer +++ b/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer
@@ -2,7 +2,8 @@ Description=Run rotate-event-logs.service every minute [Timer] -OnCalendar=*-*-* *:*:00 +OnActiveSec=60 +OnUnitActiveSec=60 [Install] WantedBy=timers.target