Date: Mon, 22 Nov 2010 13:40:50 +0100 From: Micke Sommar <micke.sommar@gmail.com> To: Markus Hitter <mah@jump-ing.de> Cc: freebsd-embedded@freebsd.org Subject: Re: Add extra logfiles to /var/log/ Message-ID: <AANLkTinVqY6ePfG8DkCeY-DdXtir5v=1YKouQkX%2B7h3T@mail.gmail.com> In-Reply-To: <71EF7CE9-09F6-4903-9D08-EAB7A12AB3F4@jump-ing.de> References: <0BE51D62-9E42-4E46-9284-DFBC074694D9@gmail.com> <71EF7CE9-09F6-4903-9D08-EAB7A12AB3F4@jump-ing.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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@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/ > > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinVqY6ePfG8DkCeY-DdXtir5v=1YKouQkX%2B7h3T>