Bug#766756: Does not mail user in case of job errors

2014-10-27 Thread Alexandre Detiste
control: tags -1 fixed-upstream Ok, I've implemented the OnFailure= hook, both for the static & generated units. Dwayne: we can hide this behind a configure option if you don't like it Diff: https://github.com/systemd-cron/systemd-cron/commit/cd01ce7d8132996d4057a5c8cf577e630a5bff09 Sample gen

Processed: Re: Bug#766756: Does not mail user in case of job errors

2014-10-27 Thread Debian Bug Tracking System
Processing control commands: > tags -1 fixed-upstream Bug #766756 [systemd-cron] Does not mail user in case of job errors Added tag(s) fixed-upstream. -- 766756: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766756 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems __

Bug#766756: Does not mail user in case of job errors

2014-10-25 Thread Yuri D'Elia
On 10/25/2014 06:37 PM, Alexandre Detiste wrote: > > 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 "" /usr/bin/$FOO whatever It's ugly indeed. Althou

Bug#766756: Does not mail user in case of job errors

2014-10-25 Thread Alexandre Detiste
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 "" /usr/bin/$FOO whatever *) Use a wrapper Environment="MAILTO=x...@xx.com" ExecStart=/usr/lib/systemd-cron/mail_

Bug#766756: Does not mail user in case of job errors

2014-10-25 Thread Yuri D'Elia
Package: systemd-cron Version: 1.3.1+ds1-1 Severity: normal A job such as "* * * * * false" would normally mail the user with the exit status + output of the standard error (if any). Currently it just flags the service as failed, which is the default behavior for services, but not for a cron dae