[systemd-bugs] [Bug 90273] RFE: make it easy to plug in monitor tools that are run after completion of specific services and can process their logs (example: sendmail tool that mails service logs)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sun May 3 08:19:30 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=90273
Lennart Poettering <lennart at poettering.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Please consider |RFE: make it easy to plug
|Standard{Output,Error}=<mai |in monitor tools that are
|laddress> |run after completion of
| |specific services and can
| |process their logs
| |(example: sendmail tool
| |that mails service logs)
--- Comment #1 from Lennart Poettering <lennart at poettering.net> ---
Well, distros like Fedora default to logging cron job output, rather than
mailing, and I am very sure that's a much better approach.
I am pretty sure that systemd should not call into sendmail directly.
I think it would make sense to provide a nice way how users/admins can plug
something into services that allow sending logs via email after services
completed running. We already support "journalctl -u <unit>" as a nice way to
pull the logs out from a unit, we'd then need a good way to get this invoked
each time a service ran, with the right time parameter to only show the bits
generated since the service was started the last time.
Not sure how precisely this could look like, but I think it would be pretty
useful to have this. Downstream could then add ready-made tools to use this for
sending emails when jobs complete.
Maybe something as simply as using ExecStopPost= for this, with an env var
$LOGS_SINCE that is set to the activation time of a service could suffice.
Then, users could use ExecStopPost=/usr/bin/monitor-script foo at bar.com that
implements what is need.
I am taking the liberty to change the bug title, to ask for this.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150503/d1cf77c3/attachment.html>
More information about the systemd-bugs
mailing list