From: Luis Sousa <llsousa@ualg.pt>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Logrotate
Date: Wed, 20 Nov 2002 10:14:10 +0000
Message-ID: <3DDB6072.1010301@ualg.pt> (raw)
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
Attachments:
smime.p7s (application/x-pkcs7-signature, 3.2K) download
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: llsousa@ualg.pt
Subject: Re: Logrotate
In-Reply-To: <3DDB6072.1010301@ualg.pt>
References: <3DDB6072.1010301@ualg.pt>
* 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