Received: from stine.vestdata.no (IDENT:0@stine.vestdata.no [195.204.68.10]) by hub.org (8.10.1/8.10.1) with ESMTP id e7SJU3C03476 for ; Mon, 28 Aug 2000 15:30:04 -0400 (EDT) Received: (from ragnark@localhost) by stine.vestdata.no (8.9.3/8.9.3) id VAA19152; Mon, 28 Aug 2000 21:23:14 +0200 Date: Mon, 28 Aug 2000 21:23:13 +0200 From: =?iso-8859-1?Q?Ragnar_Kj=F8rstad?= To: Chris Ryan Cc: Mitch Vincent , The Hermit Hacker , pgsql-admin@postgresql.org Subject: Re: [7.0.2] rotating log files ... Message-ID: <20000828212313.A19112@vestdata.no> References: <00c501c0111d$7e1dcd60$0200000a@doot> <39AAB001.59903034@greatbridge.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.5i In-Reply-To: <39AAB001.59903034@greatbridge.com>; from Chris Ryan on Mon, Aug 28, 2000 at 02:31:29PM -0400 X-Archive-Number: 200008/67 On Mon, Aug 28, 2000 at 02:31:29PM -0400, Chris Ryan wrote: > It's not normally a good idea to move/remove files that a process has an > open file handle for. The safest way is to copy the file to a new > location/name then cat /dev/null > logfile What's wrong with moving the file when it's in use? Copying the file will take much longer, and you might loose log-entries that are written after cp but before truncate. -- Ragnar Kjorstad