Received: from server.beierfeld.kabeljournal.de (pD95089D4.dip.t-dialin.net [217.80.137.212]) by postgresql.org (Postfix) with SMTP id 68DCC474E42 for ; Tue, 2 Apr 2002 00:50:58 -0500 (EST) Received: (qmail 30253 invoked from network); 2 Apr 2002 05:51:10 -0000 Received: from station158.beierfeld.kabeljournal.de (HELO km3.de) (192.168.128.158) by server.beierfeld.kabeljournal.de with SMTP; 2 Apr 2002 05:51:10 -0000 Message-ID: <3CA93986.C721718E@km3.de> Date: Tue, 02 Apr 2002 06:54:30 +0200 From: Andre Schubert X-Mailer: Mozilla 4.77 [de] (X11; U; Linux 2.2.19-6.2.12 i586) X-Accept-Language: en MIME-Version: 1.0 To: Gaetano Mendola Cc: pgsql-admin@postgresql.org Subject: Re: Log rotation References: <009d01c1d689$f5878ed0$5ce8fea9@GMENDOLA2> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200204/10 X-Sequence-Number: 3899 Gaetano Mendola schrieb: > > Hi to all, > > I configured the log rotation of postgresql started in this way: > > su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl -D $PGDATA -p > /usr/bin/postmaster start > /var/log/postgresql.log 2>&1" < /dev/null > > with the log rotate file: > > /var/log/postgresql.log { > compress > rotate 5 > size=10000k > create 0664 postgres postgres > daily > sharedscripts > copytruncate > } > > the problem now is that the postgres server is really > stressed and write continuosly on the log file > and the file is not truncated!!!!! > > anyone have any idea?? You can use multilog on linux.