Skip to content
Snippets Groups Projects
Commit 0b961f5f authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: make error summary more resilient by skipping unrecognized files and...

fix: make error summary more resilient by skipping unrecognized files and triggering the Timer at 01:00am when Rosetta logrotation has finished
parent c4f31f45
Branches
Tags
No related merge requests found
...@@ -151,6 +151,7 @@ get_last_n_days(){ ...@@ -151,6 +151,7 @@ get_last_n_days(){
GREP_CMD="grep" GREP_CMD="grep"
else else
>&2 echo "ERROR: unknown filetype, cannot find error strings from file '${LOGFILE}'." >&2 echo "ERROR: unknown filetype, cannot find error strings from file '${LOGFILE}'."
continue
fi fi
${GREP_CMD} -oP "${FILTER_STRING}" "${LOGFILE}" ${GREP_CMD} -oP "${FILTER_STRING}" "${LOGFILE}"
done | \ done | \
......
...@@ -3,7 +3,9 @@ Description=timer daily Rosetta error summary ...@@ -3,7 +3,9 @@ Description=timer daily Rosetta error summary
[Timer] [Timer]
#Run every day (daily ==> *-*-* 00:00:00) #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 #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 Persistent=true
#Unit to activate when the timer elapses. (default is set to the same name as the timer unit, except for the suffix) #Unit to activate when the timer elapses. (default is set to the same name as the timer unit, except for the suffix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment