/srv/irclogs.ubuntu.com/2012/04/29/#upstart.txt

alienthi know the plan is to eventually have upstart handle temporal triggers, and be able to deprecate some areas of cron. Are there any thoughts in that implementation on how to handle email output in a cron-like way?02:01
alienthor should temporal tasks which need to email output stay in cron?02:01
SpamapSalienth: the addition of cron has been shelved, I don't know that it is a priority for anybody committing to upstart regularly.04:09
SpamapSalienth: so yes, I'd suggest using cron for all temporal tasks04:10
SpamapS(and IMO, its not really upstart's job, even if it would be easy.. ;)04:10
alienthSpamapS: txh for the input :)04:13
spladugSpamapS, what about starting upstart tasks from cron as a way to ensure that a cron job never runs more than once simultaneously? 04:16
SpamapSspladug: yeah thats a great idea04:21
SpamapSspladug: perhaps somebody should add support for that to cron :)04:21
alienththink that would be tricky to do in cron natively :/04:24
alienthdue to how it is designed04:24
alienthmost people use wrappers to ensure it (which is what we're doing now)04:24
alienthupstart does seem like a handy way to address it04:24
alienthbut the trouble with moving some stuff into upstart is that email output becomes much more obtuse04:24
SpamapSit will be easy no doubt04:25
alienth(compared to cron)04:25
SpamapSthe event loop can have scheduled things04:25
SpamapSI'm just not a huge fan of building everything into one daemon that runs as pid 104:25
SpamapSas much of a "hack" as mountall is, I like that its concerns are separate from upstart's04:25
SpamapSalienth: right, to get email output, you'd need to have something like 'errors to foo@bar.com' and then have upstart assume sendmail works .. 04:26
SpamapSit just becomes more and more and more code in something that *must* work04:27
spladugso would a wrapper script that emails output be the best bet?04:27
SpamapSI believe mailx will only send email if there is a body04:32
SpamapSor can be coaxed to do that04:32
spladugroger, thanks :)04:35

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!