Received: from icebox.venux.net (icebox.venux.net [216.120.166.10]) by hub.org (8.10.1/8.10.1) with ESMTP id e7SINeC67110 for ; Mon, 28 Aug 2000 14:23:40 -0400 (EDT) Received: from doot (cx853045-b.phnx1.az.home.com [24.177.75.28]) by icebox.venux.net (Postfix) with SMTP id 2C00126202; Mon, 28 Aug 2000 14:29:28 -0400 (EDT) Message-ID: <00c501c0111d$7e1dcd60$0200000a@doot> From: "Mitch Vincent" To: "The Hermit Hacker" , References: Subject: Re: [7.0.2] rotating log files ... Date: Mon, 28 Aug 2000 11:26:32 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200008/61 Can you move the logfile then touch the original file to create an empty one? *shrug* just an idea :-) -Mitch ----- Original Message ----- From: "The Hermit Hacker" To: Sent: Monday, August 28, 2000 10:59 AM Subject: [ADMIN] [7.0.2] rotating log files ... > > can someone recommend on how to rotate the following log files without > having to stop/start the server? > > postgres 85333 pgsql 1w VREG 13,131084 995 762037 /pgsql/logs/postmaster.5432.61308 > postgres 85333 pgsql 2w VREG 13,131084 316501241 762038 /pgsql/logs/5432.61308 > > its the 316meg one and growing that I'm more interested in doing, obviously ... > > I'm starting my postmaster as: > > #!/bin/tcsh > setenv PORT 5432 > setenv POSTMASTER /pgsql/bin/postmaster > unlimit > ${POSTMASTER} -B 384 -N 192 \ > -o "-F -o /pgsql/logs/${PORT}.$$ -S 32768" \ > -i -p ${PORT} -D/pgsql/data >& /pgsql/logs/postmaster.${PORT}.$$ & > > where I was hoping that the '-o /pgsql/logs/${PORT}.$$' would create a > 'per postgres process' log file, but $$ is taking on the PID of the parent > process, not the children ... > > suggestions? > > Marc G. Fournier ICQ#7615664 IRC Nick: Scrappy > Systems Administrator @ hub.org > primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org > >