Why does soft link in /var/log disappear?

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Mon Feb 15 16:34:15 UTC 2010


John Almberg <jalmberg at identry.com> writes:

> 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?

When does it happen?  Without knowing that, we're pretty much into
wild-guess territory. 

That said, my wild guess is that it happens at installworld time and
there's something strange in your mtree file for var.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
		http://be-well.ilk.org/~lowell/


More information about the freebsd-questions mailing list