X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8A027475957 for ; Wed, 19 Feb 2003 05:02:46 -0500 (EST) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (Postfix) with ESMTP id B7069475925 for ; Wed, 19 Feb 2003 05:02:45 -0500 (EST) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 18lR3u-000MuV-0V; Wed, 19 Feb 2003 10:02:47 +0000 Received: from localhost ([127.0.0.1] ident=olly) by linda.lfix.co.uk with esmtp (Exim 3.36 #1 (Debian)) id 18lR3u-00055G-00; Wed, 19 Feb 2003 10:02:46 +0000 Subject: Re: log file maintenance From: Oliver Elphick To: David Wendy Cc: pgsql-admin@postgresql.org In-Reply-To: <535ddc4b.0302171054.14a489fc@posting.google.com> References: <535ddc4b.0302171054.14a489fc@posting.google.com> Content-Type: text/plain Organization: LFIX Limited Message-Id: <1045648965.1253.53.camel@linda.lfix.co.uk> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 19 Feb 2003 10:02:46 +0000 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/304 X-Sequence-Number: 7502 On Mon, 2003-02-17 at 18:54, David Wendy wrote: > I have logrotate set up for my databases, the problem is that I alwayz > have to restart my server after the log file is rotated. > > What do I do after the logrotate so I don't have to restart the db > server? > > The ways I've tried to start the server: > pg_ctl start -D .../data -l logfile > and > pg_ctl start -D .../data | cat - >> logfile > > At the moment, I'm using the logrotate script that comes with redhat. > I basically just had to create a logrotate.conf file and use it to > logrotate. Either of those methods will require the copytruncate option in the logrotate configuration. Does it have it? -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight, UK http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "And the angel answered and said unto the women, Fear ye not; for I know that ye seek Jesus, who was crucified. He is not here; for he is risen, as he said...Therefore be ye also ready; for in such an hour as ye think not the Son of man cometh." Matthew 28:5,6; 24:44