From owner-freebsd-questions@FreeBSD.ORG Fri Oct 3 22:00:08 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67BC116A4B3 for ; Fri, 3 Oct 2003 22:00:08 -0700 (PDT) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6269A43FBD for ; Fri, 3 Oct 2003 22:00:03 -0700 (PDT) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.24; FreeBSD 4.8) id 1A5eWP-0000pL-CG for freebsd-questions@freebsd.org; Sat, 04 Oct 2003 06:00:01 +0100 Date: Sat, 4 Oct 2003 06:00:01 +0100 From: Jez Hancock To: freebsd-questions@freebsd.org Message-ID: <20031004050001.GB2965@users.munk.nu> Mail-Followup-To: freebsd-questions@freebsd.org References: <20031003140043.GB80565@darkpossum> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031003140043.GB80565@darkpossum> User-Agent: Mutt/1.4.1i Sender: User Munk Subject: Re: var partition is too small X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Oct 2003 05:00:08 -0000 On Fri, Oct 03, 2003 at 09:00:43AM -0500, Redmond Militante wrote: > hi all > > the var partition on my apache box may be too small. > this is a problem because - > i originally had newsyslog set at > > /var/log/httpd-access.log 644 7 100 24 B /var/run/httpd.pid 30 fwiw I have the following entry in /etc/crontab: 0 * * * * root /home/munk/bin/sh/newsyslog.sh where that script reads: #!/bin/sh YEAR=`date "+%Y"` ROTATE_DIR=/home/munk/backup/log/$YEAR if [ ! -d $ROTATE_DIR ] then mkdir $ROTATE_DIR fi /usr/sbin/newsyslog -a $ROTATE_DIR /usr/sbin/chown -R root:wheel $ROTATE_DIR \ && /bin/chmod -R 750 $ROTATE_DIR so the logfiles get rotated out into /home/munk/backup/log/$YEAR with whatever compression/triggers are setup in /etc/newsyslog.conf. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/