On 05.08.26 18:35, Andreas Metzler wrote:
Ideally there would be some protocol that could trace the submitted
message back to a user and possibly a process ID. I have wanted that
information for practical reasons before (trying to track down which
service was sending weird mail, for instance).
Time to revive ident / rfc 1413 😉

Actually you get that for free if you use a dbus interface.

Speaking of dbus, there might be a better alternative: simply monitor systemd's dbus (or varlink, I presume) interface. If a timer-started unit [or possibly any other system unit] fails, you can just pull its log from the journal and send the last five minutes' worth via email, or whatever other notification mechanism you want.

No cron/timer-specific mechanism, modification to your timer units, special privileges, … required.

--
-- regards
--
-- Matthias Urlichs

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to