Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Nov 2010 11:45:41 +0100
From:      Markus Hitter <mah@jump-ing.de>
To:        Micke <micke.sommar@gmail.com>
Cc:        freebsd-embedded@freebsd.org
Subject:   Re: Add extra logfiles to /var/log/
Message-ID:  <71EF7CE9-09F6-4903-9D08-EAB7A12AB3F4@jump-ing.de>
In-Reply-To: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com>
References:  <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

Am 21.11.2010 um 22:52 schrieb Micke:

> Does anyone know where to store the log-files so they vill appear  
> at the /var/log directory ?

You want /var to be writeable. Either make the whole root disk  
writeable, or add a writeable entry into /etc/fstab. For the later,  
here's what I've done:

Put this into /etc/fstab:

tmpfs /var tmpfs rw,size=20971520 0 0

Additionally, put a link from tmp to var/tmp into the directory of  
files picked up by tinybsd and your needs for writeable directories  
should be satisfied. The link is broken in the source directory but  
will resolve fine when the tinybsd image is in use.


Markus

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. (FH) Markus Hitter
http://www.jump-ing.de/








Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71EF7CE9-09F6-4903-9D08-EAB7A12AB3F4>