From owner-freebsd-questions Thu Mar 11 9:22:26 1999 Delivered-To: freebsd-questions@freebsd.org Received: from nmail.devrycols.edu (nmail.devrycols.edu [199.218.238.2]) by hub.freebsd.org (Postfix) with SMTP id 292F115326 for ; Thu, 11 Mar 1999 09:22:23 -0800 (PST) (envelope-from jm7996@devrycols.edu) Received: from cis070 [131.187.253.210] by nmail.devrycols.edu (SMTPD32-4.07) id AA675F70298; Thu, 11 Mar 1999 12:16:23 EST Message-Id: <3.0.5.32.19990311121717.007d9b90@devrycols.edu> X-Sender: jm7996@devrycols.edu X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Thu, 11 Mar 1999 12:17:17 -0500 To: borehawg , freebsd-questions@freebsd.org From: "James A. Mutter" Subject: Re: Darn upgrade and handbook!!! In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 08:40 PM 3/10/99 -0500, borehawg wrote: >Heyas. >My /var partition fills up once a day from the volume of mail I get >from various lists. I remember when I had 2.2.6 running, there was a >./daily command in /etc that I could use that cleaned up all the temp >stuff in /var (I think thats how I did it). But now that I am running 3.1, >there is a directory called /etc/periodic/daily that has executable >scripts such as "100.clean-disks" and "110.clean-tmps". I can't figure >out what these do. So far, the only way I can clear out the /var partition >is to reboot (ugh). > >There doesn't seem to be any references to what I'm looking for in >/usr/share/doc/handbook and my copy of _The_Complete_FreeBSD_ is a little >dated now (It came with the 2.2.6 disks). > > You're more than halfway there. You need to create a script in /etc/periodic/daily to clean /var/* for you. Something along the lines of this might work: #!/bin/sh find /var -name {files you want to clean} | xargs rm should work. You might want to look at 110.clean-tmps for more guidence. The above example could be done better, there are good reasons not to use find in that manner. Anyhow, that should get you started. Good luck. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message