Add extra logfiles to /var/log/

Markus Hitter mah at jump-ing.de
Mon Nov 22 11:11:10 UTC 2010


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/







More information about the freebsd-embedded mailing list