Re: Logrotate

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Luis Sousa <llsousa(at)ualg(dot)pt>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Logrotate
Date: 2002-11-20 21:46:09
Message-ID: 1037828769.23925.104.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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
>

In response to

  • Logrotate at 2002-11-20 10:14:10 from Luis Sousa

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2002-11-21 03:53:33 Re: crash help, pgsql 7.2.1 on RH7.3
Previous Message Girish Patangay 2002-11-20 21:40:11 sh: `-c' requires an argument