pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Treat <xzilla@users.sourceforge.net>
To: Luis Sousa <llsousa@ualg.pt>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Logrotate
Date: 20 Nov 2002 16:46:09 -0500
Message-ID: <1037828769.23925.104.camel@camel> (raw)
In-Reply-To: <3DDB6072.1010301@ualg.pt>
References: <3DDB6072.1010301@ualg.pt>

This is just a guess, but try changing your script to do reload instead
of restart.

Robert Treat

On Wed, 2002-11-20 at 05:14, Luis Sousa wrote:
> Hi all,
> 
> I'm running postgresql 7.2.1 on a debian 3.0 machine and I want to do 
> some log rotation, but I'm having some problems. The configuration that 
> I'm using is:
> In /etc/logrotate.d/postgres:
> /var/log/postgres.log {
>         weekly
>         rotate 52
>         compress
>         delaycompress
>         notifempty
>         create 640 postgres postgres
>         sharedscripts
>         postrotate
>                 /etc/init.d/postgresql restart > /dev/null
>         endscript
> }
> 
> But when this is executed, always is returned the following error:
> 
> pg_ctl: Another postmaster may be running.  Trying to start postmaster
> anyway.
> pg_ctl: cannot start postmaster
> Examine the log output.
> 
> Any sugestions !! What's wrong ?
> 
> Regards, Luis Sousa
> 






view thread (4+ messages)  latest in thread

Message-ID: <1037828769.23925.104.camel@camel>
Permalink:  ../1037828769.23925.104.camel@camel/
Also on:    postgresql.org/message-id/1037828769.23925.104.camel@camel

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: xzilla@users.sourceforge.net, llsousa@ualg.pt
  Subject: Re: Logrotate
  In-Reply-To: <1037828769.23925.104.camel@camel>
  References: <3DDB6072.1010301@ualg.pt> <1037828769.23925.104.camel@camel>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox