FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Infrastructure

 
 
LinkBack Thread Tools
 
Old 11-06-2009, 08:31 PM
Mike McGrath
 
Default logging cron job

---
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

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 11-06-2009, 09:11 PM
Matt Domsch
 
Default logging cron job

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@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 11-06-2009, 09:12 PM
Dennis Gilmore
 
Default logging cron job

On Friday 06 November 2009 03:31:12 pm 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

Dennis
_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list
 
Old 11-06-2009, 09:44 PM
Mike McGrath
 
Default logging cron job

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

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

Thread Tools




All times are GMT. The time now is 01:23 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org