[PATCH] logging cron job

Mike McGrath mmcgrath at redhat.com
Fri Nov 6 22:44:56 UTC 2009


On Fri, 6 Nov 2009, Matt Domsch wrote:

> On Fri, Nov 06, 2009 at 03:31:12PM -0600, Mike McGrath wrote:
> > ---
> >  modules/transifex/manifests/init.pp |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/modules/transifex/manifests/init.pp b/modules/transifex/manifests/init.pp
> > index df03871..8e2d24a 100644
> > --- a/modules/transifex/manifests/init.pp
> > +++ b/modules/transifex/manifests/init.pp
> > @@ -126,7 +126,7 @@ class transifex::app {
> >
> >  class transifex::refresh {
> >      cron { "transifex-refresh":
> > -        command => "cd /usr/share/transifex; CVS_RSH=ssh SSH_AUTH_SOCK=/var/lib/transifex/ssh-agent-sock-transifex /usr/bin/python ./manage.py txstatsrefresh --skip-broken > /dev/null 2>&1",
> > +        command => "cd /usr/share/transifex; CVS_RSH=ssh SSH_AUTH_SOCK=/var/lib/transifex/ssh-agent-sock-transifex /usr/bin/python ./manage.py txstatsrefresh --skip-broken > /var/log/transifex/cron.log 2>&1",
> >          user    => "transifex",
> >          minute  => [ 45 ],
> >          hour    => [ 1, 7, 13, 18 ],
> > --
> > 1.6.2.5
>
> If you have a way to logrotate that cron.log file too, +1.
>

For this one I'm actually just using >, not append.

	-Mike




More information about the Fedora-infrastructure-list mailing list