From owner-freebsd-embedded@FreeBSD.ORG  Mon Nov 22 12:40:53 2010
Return-Path: <owner-freebsd-embedded@FreeBSD.ORG>
Delivered-To: freebsd-embedded@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 03D8F1065672
	for <freebsd-embedded@freebsd.org>;
	Mon, 22 Nov 2010 12:40:53 +0000 (UTC)
	(envelope-from micke.sommar@gmail.com)
Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50])
	by mx1.freebsd.org (Postfix) with ESMTP id 8B7DC8FC0C
	for <freebsd-embedded@freebsd.org>;
	Mon, 22 Nov 2010 12:40:52 +0000 (UTC)
Received: by wwd20 with SMTP id 20so7039068wwd.31
	for <freebsd-embedded@freebsd.org>;
	Mon, 22 Nov 2010 04:40:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=domainkey-signature:mime-version:received:received:in-reply-to
	:references:date:message-id:subject:from:to:cc:content-type;
	bh=Z6ToZZKp5rqOVqnQgF+OfV7gAScNt6Z4uZLYtBYA0k4=;
	b=EzK44VLHY8krToz9c/27lgROEHcDpU7+vCs7arGvf13T89hq5v+vhYTAwzVMQ45Fdq
	HQZWqSU2S9+tfmTNL/hOmGKC6JOGdDn4+MQFjZQShok/6Oy8siJj5QSsUmVOJ+wtJ8VL
	tEy72haq9Fbw6VvEfMKYSoIYKh/DIYp8awIqk=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:date:message-id:subject:from:to
	:cc:content-type;
	b=nBdTub+Jp3URd/Tl0DY+BTRGxUy/GvgaFOA1kWNElKOSf0XGfhtyUeDVgxrus26CwW
	4180UM028/9w7OqJSF/U0QfoAWKRz/fd16dRfL7CmAzvZivt2JBRUmoRsGn0tc2+3r70
	CInWQdmrl6xtPrG9vSIkKOzSaZ46ncOrKGJdw=
MIME-Version: 1.0
Received: by 10.216.157.132 with SMTP id o4mr4044604wek.7.1290429650430; Mon,
	22 Nov 2010 04:40:50 -0800 (PST)
Received: by 10.216.20.75 with HTTP; Mon, 22 Nov 2010 04:40:50 -0800 (PST)
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>
Date: Mon, 22 Nov 2010 13:40:50 +0100
Message-ID: <AANLkTinVqY6ePfG8DkCeY-DdXtir5v=1YKouQkX+7h3T@mail.gmail.com>
From: Micke Sommar <micke.sommar@gmail.com>
To: Markus Hitter <mah@jump-ing.de>
Content-Type: text/plain; charset=ISO-8859-1
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
Cc: freebsd-embedded@freebsd.org
Subject: Re: Add extra logfiles to /var/log/
X-BeenThere: freebsd-embedded@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Dedicated and Embedded Systems <freebsd-embedded.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-embedded>, 
	<mailto:freebsd-embedded-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-embedded>
List-Post: <mailto:freebsd-embedded@freebsd.org>
List-Help: <mailto:freebsd-embedded-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-embedded>, 
	<mailto:freebsd-embedded-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Nov 2010 12:40:53 -0000

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