Add extra logfiles to /var/log/

Micke Sommar micke.sommar at gmail.com
Mon Nov 22 12:40:53 UTC 2010


Hi

The problem is not that /var/log is write protected, its not. The problem
is, all the changes made to /var/log is cleaned then I reboot the machine. I
want to have the option to store some extra logfiles att startup. I tried to
create the logfiles in /etc/rc.local , but rc.local is executed to late.

Lighttpd need two logfiles to startup, one option is to move them away from
/var/log, but thats wrong.

Where do tinyBSD store/create the logfiles that is loaded in to /var/log ?
I want to add two extra logfiles that should be loaded att startup.

My TinyBSD options in rc.conf is:
varmfs="YES"
populate_var="YES"
varsize="8192"
tmpmfs="YES"

Best regards Micke


On 22 November 2010 11:45, Markus Hitter <mah at jump-ing.de> wrote:

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