From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,271c3c51c4f7c28f X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-01-14 21:35:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn14feed!worldnet.att.net!208.49.253.98!newsfeed.news2me.com!newsfeed2.easynews.com!newsfeed1.easynews.com!easynews.com!easynews!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!nntp.wideopenwest.com!news.wideopenwest.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 14 Jan 2003 23:35:05 -0600 From: Stuart Fuller Subject: Re: trimming wtmp Newsgroups: comp.unix.tru64 Reply-To: stufuller@usa.net Date: Tue, 14 Jan 2003 23:42:57 -0500 References: <3E2355D6.794B@maths.usyd.edu.au> Organization: at home, in the basement User-Agent: KNode/0.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: NNTP-Posting-Host: 64.233.216.39 X-Trace: sv3-MJ2kqAKUj7LCoFXHEj4QfHZX0lgMf22Fty8ZmP3/eGyYiK6jMPeZ5cu+MenpwqA5ZUu7K3Yei3dbG8o!AMOy1JxzpFznm3kX/tDLP2K9gk4qJcUfdCeRp+FCl3TQGJeQ+/DPSnjJuNlrNulTqUprVHqP9ck2!BY/HRT1mfjhozULxiZMpEtGHW+2Tqg== X-Complaints-To: abuse@wideopenwest.com X-DMCA-Complaints-To: abuse@wideopenwest.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.1 Xref: archiver1.google.com comp.unix.tru64:9388 Nico Kadel-Garcia wrote: > > "Paul Szabo" wrote in message > news:3E2355D6.794B@maths.usyd.edu.au... >> Daniel Berger wrote: >> > Is there a way to trim wtmp? Mine goes back years and has gotten huge. >> >> What we do, yearly, is (at a quiet time): >> >> cp -ip /usr/adm/wtmp /usr/adm/wtmp.2002 >> echo -n '' > /usr/adm/wtmp >> >> so the system has a nice, small (empty) file to fill up again. > > Log rotation is an art form. Take a look at this approach: > > mv /usr/adm/wtmp /usr/adm/wtmp.{backup name} > kill -HUP {syslog process ID} > > This way, you restart the syslog daemon correctly and the data continues > to pour into the file descriptor of the original file even in its new > location until you restart it. Umm, does syslog write to /usr/adm/wtmp? I don't think it does, so I don't understand the purpose of restarting syslog -- Stu