diff --git a/files/error-summary.sh b/files/error-summary.sh index 110583dfb4d79e728eb859750f44acfac9b1e4d8..25dc98d4bfcde4178e28719c4b99d57606ee0c44 100755 --- a/files/error-summary.sh +++ b/files/error-summary.sh @@ -151,6 +151,7 @@ get_last_n_days(){ GREP_CMD="grep" else >&2 echo "ERROR: unknown filetype, cannot find error strings from file '${LOGFILE}'." + continue fi ${GREP_CMD} -oP "${FILTER_STRING}" "${LOGFILE}" done | \ diff --git a/templates/error-summary.timer.j2 b/templates/error-summary.timer.j2 index a3c9e59ffdcdc6f3a114b4660a6fc0f06cecd9d9..96672ee859234c0ee96b385bed4a8c2f21930cba 100644 --- a/templates/error-summary.timer.j2 +++ b/templates/error-summary.timer.j2 @@ -3,7 +3,9 @@ Description=timer daily Rosetta error summary [Timer] #Run every day (daily ==> *-*-* 00:00:00) -OnCalendar=daily +#OnCalendar=daily +#Run every day at 01:00 o'clock, after Rosetta's logrotation/compression has happened +OnCalendar=*-*-* 01:00:00 #When activated, it triggers the service immediately if it missed the last start time, for example due to the system being powered off Persistent=true #Unit to activate when the timer elapses. (default is set to the same name as the timer unit, except for the suffix)