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
No related branches found
No related tags found
No related merge requests found
......@@ -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 | \
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment