From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 17 12:11:08 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B59FF106566C for ; Sun, 17 Apr 2011 12:11:08 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id 6F9F98FC0C for ; Sun, 17 Apr 2011 12:11:08 +0000 (UTC) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1QBQoh-000EDX-AP; Sun, 17 Apr 2011 15:11:03 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: "J. Hellenthal" In-reply-to: <20110416233839.GA72223@DataIX.net> References: <8CDCA9824BFE47E-176C-A720@web-mmc-d04.sysops.aol.com> <20110416233839.GA72223@DataIX.net> Comments: In-reply-to "J. Hellenthal" message dated "Sat, 16 Apr 2011 19:38:39 -0400." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 17 Apr 2011 15:11:03 +0300 From: Daniel Braniss Message-ID: Cc: freebsd-hackers@freebsd.org, dieterbsd@engineer.com Subject: Re: Add SUM sysctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Apr 2011 12:11:08 -0000 > > --Kj7319i9nmIyA2yE > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > On Sat, Apr 16, 2011 at 04:46:53PM -0600, Warren Block wrote: > >On Sat, 16 Apr 2011, dieterbsd@engineer.com wrote: > > > >>Suggestion 2: The kernel may not have an official flag for single > >>vs multi user mode but you can fake it. Try something like > >>"pgrep syslogd". If syslogd is running assume multiuser mode. If > >>syslogd is not running assume single user mode. > > > >Another option: kern.hostid is set nonzero pretty early in the rc > >scripts. > > Same as getty(8). That also will not be running in SU and in most cases > is a clear indication that nothing else is running unless you have a > remote only machine without a console in which you have purposely > disabled getty(8). > > --=20 > > Regards, > J. Hellenthal > WWJD when something gets too complicated, it's usualy helpful to look for other ways out: the /(root) + /usr + kernel-debuging + src is less than 1GB, so what I do (when diskless is not an option), I have a 2 partitions, both bootable, and so i ALWAYS update the non active one, then 1- I always have a working / in case the update screwed something 2- I can update without problems. my $.02 danny