wish: package /lib/systemd-cron/mail_on_failure separately
Bug #1583743 reported by
Mark Stosberg
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd-cron (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'd like to write my own systemd timers, but would like an easy way to send mail on failure. Splitting out /lib/systemd-
Right now, installing systemd-cron on 16.04 causes ubuntu-standard and other things to be removed if I don't want, so installing systemd-cron just to get the `mail_on_failure` tool is not a good option
To post a comment you must log in.
Hi,
I guess I'm the only one here reading your request, this should be better discussed at
<email address hidden> where the actual development for systemd in Debian/Ubuntu happens.
If there weren't the Python depedency, systemd maintainers would maybe accept to stuff
this script into Debian's systemd package (in debian/scripts/ in the git tree,
but it would then be installed in /lib/systemd/ in the resulting package)
so that it's always available for all jobs.
I don't see in anyway upstream accepting this kind of "legacy cruft" in their tree.
---------
Now you can just rip ou this single program for your convenienc without using the whole systemd-cron package.
https:/ /github. com/systemd- cron/systemd- cron/blob/ master/ src/bin/ mail_on_ failure. py
It's pretty much "done", there's well one unicode bug related to it,
but I can't reproduce it.
https:/ /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 792777
I was also toying around with a C rewrite, but this is nowhere near ready:
https:/ /github. com/systemd- cron/systemd- cron-c/ blob/master/ mail_on_ failure. c