diff options
author | Jason M. Bills <jason.m.bills@linux.intel.com> | 2019-12-10 21:41:10 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-12-12 03:30:47 +0300 |
commit | ba72859bd9830b79b59c5781fab5608f5a63b62c (patch) | |
tree | 1b2425e68908b1d5b49122d89a6e11309ec87edd /meta-intel/meta-common/recipes-extended | |
parent | 1f25c977abf3ec6a6aa790db438d148472e39882 (diff) | |
download | openbmc-ba72859bd9830b79b59c5781fab5608f5a63b62c.tar.xz |
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.
(From meta-intel rev: 7b0ef8a7ffc02cfaac4b67ca321db8d3025aecaa)
Change-Id: Ica1aa3b3635e7273c65a08bf0fa40c9155318716
Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-intel/meta-common/recipes-extended')
-rw-r--r-- | meta-intel/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-intel/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer b/meta-intel/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer index 148f8e4ae..ae1185e4f 100644 --- a/meta-intel/meta-common/recipes-extended/rsyslog/rsyslog/rotate-event-logs.timer +++ b/meta-intel/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 |