Re: [PATCH] logging cron job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


-- 
Matt Domsch
Technology Strategist, Dell Office of the CTO
linux.dell.com & www.dell.com/linux

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux