Re: init script for redhat

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Jeremy Palmer" <palmerj(at)xtra(dot)co(dot)nz>, <pgadmin-support(at)postgresql(dot)org>
Cc: "Devrim GUNDUZ" <devrim(at)commandprompt(dot)com>
Subject: Re: init script for redhat
Date: 2006-06-12 13:34:34
Message-ID: E7F85A1B5FF8D44C8A1AF6885BC9A0E401388898@ratbert.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

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

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Dave Page 2006-06-12 14:21:49 Re: Postgres question
Previous Message Dave Page 2006-06-12 12:59:24 Re: Problems with SVN win32 build.