Date: Thu, 11 Mar 1999 12:17:17 -0500 From: "James A. Mutter" <jm7996@devrycols.edu> To: borehawg <bangpath@bellsouth.net>, freebsd-questions@freebsd.org Subject: Re: Darn upgrade and handbook!!! Message-ID: <3.0.5.32.19990311121717.007d9b90@devrycols.edu> In-Reply-To: <Pine.BSF.4.05.9903101956490.554-100000@kagero.gw.total-web .net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19990311121717.007d9b90>