Re: more contrib: log rotator

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "Ed L(dot)" <pgsql(at)bluepolka(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Andrew Sullivan <andrew(at)libertyrms(dot)info>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: more contrib: log rotator
Date: 2003-04-04 22:50:57
Message-ID: Pine.LNX.4.33.0304041543550.25756-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 4 Apr 2003, Tom Lane wrote:

> "scott.marlowe" <scott(dot)marlowe(at)ihs(dot)com> writes:
> > Hey, do you guys think that a setting of silent_mode = false might affect
> > no log files getting created?
>
> No, but setting it to true would be bad news.

That's what I'd meant actually. I had to turn of silent mode... You know
you're having a bad day when your email explaining how stupid you are is
factually incorrect. :-)

If anyone wants the diff, here it is:

22c22
< $CMDNAME start [-w] [-D DATADIR] [-s] [-l FILENAME] [-o \"OPTIONS\"]
---
> $CMDNAME start [-w] [-D DATADIR] [-s] [-r DURATION] [-l FILENAME]
[-o \"OPTIONS\"]
39a40,41
> -r DURATION invoke log rotation with DURATION seconds
> between rotation of files.
155a158,161
> -r)
> DURATION="$2"
> shift
> ;;
336c342,346
< "$po_path" ${1+"$@"} </dev/null >>$logfile 2>&1 &
---
> if [ -n "$DURATION" ]; then
> "$po_path" ${1+"$@"} </dev/null 2>&1| $PGPATH/rotatelogs
$logfile $DURATION 2>&1 &
> else
> "$po_path" ${1+"$@"} </dev/null >>$logfile 2>&1 &
> fi

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-04-04 23:27:22 Re: Deadlock while doing VACUUM??
Previous Message Kevin Brown 2003-04-04 22:46:12 Re: Deadlock while doing VACUUM??