From owner-freebsd-questions@FreeBSD.ORG Fri Jun 8 02:47:28 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C86931065672 for ; Fri, 8 Jun 2012 02:47:28 +0000 (UTC) (envelope-from kudzu@tenebras.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 972A08FC1B for ; Fri, 8 Jun 2012 02:47:28 +0000 (UTC) Received: by dadv36 with SMTP id v36so1857700dad.13 for ; Thu, 07 Jun 2012 19:47:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=zm0KuRTSAobvS85gTh8U/GV/o9rOVA0DuuloIbRyZc8=; b=OA+Z+6dqoYtEJrMBF9O5uPJeuVDQHqzv032G4Lu8KkcNHfPuegHvuOTIVosqqRmCi5 xy/NMvQjgrmxaXkhz60D/maK2m+pN+Gxl+8riy3r5+zfbtLAaQl6MyaKxt0yb9rtp2oY Dokcgb/o60fySN0zjDKUWxDrd5moAEG7GYjWlM7Lxxc5CgMH1l11j6J3PZ1MnMUZO7L0 jGaAy4Ss4XIXqv9oOd7f7cPiO2632VIkRiTAsiCTxXLcaSpBWZI4EmXXGARkdgfPrpOW Py8d+DjZQNBYRmCXRXqbaiYIGTW0p33NsaVsbHpxSvaJfM8op364v+f8jpVV80R5rbMY NiMQ== MIME-Version: 1.0 Received: by 10.68.232.103 with SMTP id tn7mr15060739pbc.86.1339123648237; Thu, 07 Jun 2012 19:47:28 -0700 (PDT) Received: by 10.68.202.8 with HTTP; Thu, 7 Jun 2012 19:47:28 -0700 (PDT) In-Reply-To: <20120608043422.9a5d37a7.freebsd@edvax.de> References: <4FD15461.6090109@makeworld.com> <201206080202.q5822vVd060619@mail.r-bonomi.com> <20120608043422.9a5d37a7.freebsd@edvax.de> Date: Thu, 7 Jun 2012 19:47:28 -0700 Message-ID: From: Michael Sierchio To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQkXn3gI3wDPlpP0XKZNFHL+KBcbmiKfeXKksyBWmo6jW4WYUOo3frsI/nb7zOAiRmeT8PTE Cc: racerx@makeworld.com, freebsd-questions@freebsd.org, Robert Bonomi Subject: Re: find date of last boot X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2012 02:47:28 -0000 On Thu, Jun 7, 2012 at 7:34 PM, Polytropon wrote: > Maybe introducing something along the /etc/rc execution? > An /etc/rc.local entry like > > =A0 =A0 =A0 =A0/bin/date "+%Y-%m-%d %H:%M:%S" > /var/log/thisboot.log > > and then just look at the file. Requires at least one reboot > to take effect. :-) > You could just put the following in /etc/rc.local date and it would be retained in /var/run/dmesg.boot