On Mon, Aug 3, 2026 at 9:24 AM Mantas Mikulėnas <[email protected]>
wrote:
> journalctl -q -p err --cursor-file=/var/log/journal/cron.hourly

Thanks, this looks interesting!

In the meantime, I have restricted `[email protected]`, for
system and user, to send a notification no more than once per minute:

    [Unit]
    Description=Send an email notification whenever a service fails
    After=network.target
    StartLimitIntervalSec=60
    StartLimitBurst=1

    [Service]
    Type=simple
    ExecStart=/usr/local/bin/on_service_fail %i

Reply via email to