Date: Mon, 15 Feb 2010 11:00:43 -0500 From: Jerry McAllister <jerrymc@msu.edu> To: John Almberg <jalmberg@identry.com> Cc: freebsd-questions@freebsd.org Subject: Re: Why does soft link in /var/log disappear? Message-ID: <20100215160043.GG9629@gizmo.acns.msu.edu> In-Reply-To: <972F1E78-A410-4398-8428-38331578C66C@identry.com> References: <972F1E78-A410-4398-8428-38331578C66C@identry.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100215160043.GG9629>