10 May
2023
10 May
'23
19:33
Carlos E. R. wrote:
That "preremove" option is pretty cool. Didn't exist when I set up our own log archiving almost twenty years ago :-)
It makes it easy and straight forward to do log archiving. Although it is yet another situation where you wish for MAILTO to work with systemd timers :-)
preremove /usr/local/bin/archive_logfile.sh $1 send_the_email $1 endscript
:-)
Huh? what is that supposed to do ? The MAILTO option in a cronjob would mail the errors and any other output from the log rotation. Yours seems to mail the logfile? logrotate has a direct option for that, "mail". -- Per Jessen, Zürich (11.3°C) Member, openSUSE Heroes (2016 - present) We're hiring - https://en.opensuse.org/openSUSE:Heroes