We could either:

*) trigger something with OnFailure=
http://lists.freedesktop.org/archives/systemd-devel/2014-October/024268.html

I find this ugly:
ExecStart=/bin/systemd-cat -t "<MY TIMER JOB LABEL>" /usr/bin/$FOO  whatever


*) Use a wrapper

Environment="MAILTO=x...@xx.com"
ExecStart=/usr/lib/systemd-cron/mail_helper /usr/bin/$FOO whatever

The mail_helper would run the actual program and run mailx if needed
(either non-empty output or return code <> 0; 
the tastes vaires)

Then the static units would need....

ExecStart=/usr/lib/systemd-cron/mail_helper /bin/run-parts /etc/cron.daily/


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to