From: | "Jeremy Palmer" <palmerj(at)xtra(dot)co(dot)nz> |
---|---|
To: | "'Dave Page'" <dpage(at)vale-housing(dot)co(dot)uk>, <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: init script for redhat |
Date: | 2006-06-15 11:58:58 |
Message-ID: | 20060615115902.VVN19789.fep04.xtra.co.nz@creeping |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Hi Dave,
Attached is a patch that allows pgagent to immediately log messages to file.
I have tentatively changed the cmd line switch for logging verbosity to "-s"
so "-l" can be used for the log file specification. I felt that this was
more intuitive.
If the patch is accepted, then a small change to the init script will need
to be made to accommodate the file logging...
Cheers
Jeremy
> -----Original Message-----
> From: Dave Page [mailto:dpage(at)vale-housing(dot)co(dot)uk]
> Sent: Tuesday, 13 June 2006 1:35 a.m.
> To: Jeremy Palmer; pgadmin-support(at)postgresql(dot)org
> Cc: Devrim GUNDUZ
> Subject: RE: [pgadmin-support] init script for redhat
>
>
>
> > -----Original Message-----
> > From: pgadmin-support-owner(at)postgresql(dot)org
> > [mailto:pgadmin-support-owner(at)postgresql(dot)org] On Behalf Of
> > Jeremy Palmer
> > Sent: 04 June 2006 13:18
> > To: pgadmin-support(at)postgresql(dot)org
> > Subject: Re: [pgadmin-support] init script for redhat
> >
> > Ok I have attached a modified init script, which now uses the postgres
> > database. The logging is also redirected to pgagent.log in
> > the pgsql home
> > directory. Could this please be added to the source tree?
>
> Sure - thanks.
>
> Devrim; I was thinking of adding this to pkg/redhat, and leaving
> installation up to the RPM (ie. Not installed by 'make install' because
> it won't know what is or isn't an appropriate platform) - does that seem
> reasonable to you?
>
> > Note: because pgagent does not flush the buffer for every log
> > message, the
> > log file does not see anything until the buffer is written.
> > Maybe pgagent
> > could be changed to log to a file which is flushed
> > periodically, instead of
> > stdout?
>
> A command line option to specify a logfile to use instead of stdout
> would work, as might simply fflush()'ing stdout.
>
> Care to work up a patch? :-)
>
> Regards, Dave.
Attachment | Content-Type | Size |
---|---|---|
pgagent.patch | application/octet-stream | 4.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Page | 2006-06-15 12:08:30 | Re: init script for redhat |
Previous Message | Devrim GUNDUZ | 2006-06-14 09:12:53 | Re: init script for redhat |