Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id CEA8F475843 for ; Wed, 20 Nov 2002 16:46:17 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id 2BAB5474E61 for ; Wed, 20 Nov 2002 16:46:17 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id gAKLpi6P031195; Wed, 20 Nov 2002 16:51:44 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id gAKLk9j05583; Wed, 20 Nov 2002 16:46:10 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id W7RLXFH3; Wed, 20 Nov 2002 16:46:08 -0500 Subject: Re: Logrotate From: Robert Treat To: Luis Sousa Cc: pgsql-admin In-Reply-To: <3DDB6072.1010301@ualg.pt> References: <3DDB6072.1010301@ualg.pt> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 20 Nov 2002 16:46:09 -0500 Message-Id: <1037828769.23925.104.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/183 X-Sequence-Number: 6371 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 >