On Thursday 24 March 2016, Per Jessen wrote:
Anton Aylward wrote:
On 03/24/2016 04:33 AM, Per Jessen wrote:
a) what is the systemd equivalent of cron's MAILTO setting?
It occurs to me that the .timer fires up some other unit and in that unit you can have any or all of
Onfailure= ... mail to user = name, subject = failure body = whatever
This would be a list of units to be activated?
also
FailureAction=
That one doesn't seem to be in my man page, maybe its new.
After= some unit with argument
ExecStartPre=, ExecStartPost=
and of course
Also=
Nah, if I have to jump through that many hoops, I think I'll revert to cron+MAILTO.
But this is not the modern way ;) BTW note that crond's email support is also not perfect. At least the one openSUSE is installing per default does some things wrong which other crond's do better: openSUSE's cronie connects to the sendmail socket already when the jobs starts and writes your job output directly to that socket. This means you may not get that mail if the mail server restarts while the job is running. Also many jobs at the same time will cause "too many open files" errors. Last but not least the email does not contain any information when the job was finished, only start time. My knowledge is a few years old but I don't think these issues have changed/fixed allthough they have been reported. cu, Rudi -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org