From owner-freebsd-questions@FreeBSD.ORG Mon Feb 15 16:02:46 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EA701065676 for ; Mon, 15 Feb 2010 16:02:46 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id D42348FC0A for ; Mon, 15 Feb 2010 16:02:45 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id o1FG0iHu010110; Mon, 15 Feb 2010 11:00:44 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id o1FG0hDD010109; Mon, 15 Feb 2010 11:00:43 -0500 (EST) (envelope-from jerrymc) Date: Mon, 15 Feb 2010 11:00:43 -0500 From: Jerry McAllister To: John Almberg Message-ID: <20100215160043.GG9629@gizmo.acns.msu.edu> References: <972F1E78-A410-4398-8428-38331578C66C@identry.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <972F1E78-A410-4398-8428-38331578C66C@identry.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Why does soft link in /var/log disappear? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Feb 2010 16:02:46 -0000 On Mon, Feb 15, 2010 at 09:46:09AM -0500, John Almberg wrote: > I didn't make my /var partition big enough, way back when, and have had > to move my /var/log/www directory to another partition. I did this by > moving the directory, and then adding a soft link from /var/log to the > moved directory, using something like: > > ln -s /home/wwwlog /var/log/www > > This works great, but something is deleting the soft link. > > Is there anything in the freebsd base that 'cleans up' the /var/log > directory? Any hints on how I can discover what is doing this clean up, > or a way to protect this link from being deleted? Do you have log rotation set up? In order to do a clean copy when the file may still be held open by the www system, the rotator may delete and recreate the file. The rotator probably does not pay any attention to it being a link. This is just a big guess, but something to check on. I have many directories moved and linked to use other space and have no problem with it. It should work, but you may have to make the log rotator smarter - or change how the directory tree is set up. Something like: don't move and link the actual file/directory the logger writes to, but create a directory above it in the bigger space and then set up configuration to write to log files within it so there never has to be a link on the actual files on which the log rotator is working. ////jerry > > Thanks: John > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >