From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 16 23:38:47 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 1A89D10657B0 for ; Sat, 16 Apr 2011 23:38:47 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8978FC16 for ; Sat, 16 Apr 2011 23:38:45 +0000 (UTC) Received: by iwn33 with SMTP id 33so3967903iwn.13 for ; Sat, 16 Apr 2011 16:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:x-openpgp-key-id:x-openpgp-key-fingerprint :x-openpgp-key-url; bh=eHkr4q4jksdk3JdBZROfbMSTFQ/YClIAzQa5GYVJNAU=; b=lqZWsetn4Ah08/VN5O/YSnF3fYh/8whhdOLFT4ra5JyUsRLJGb2faOGIYamTWBGIDa STgPd5Edo6eJVGnLhhdS4xt5cn+nHcjj710qpKkkJqmMu9q/duNqvvwWPG8Lv4nj3Lnq RWdKavWqRRVzGORrbVnkBborAK/qUH6FVi9tQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-openpgp-key-id :x-openpgp-key-fingerprint:x-openpgp-key-url; b=U/voNBER1w1AcCMGtYj1ExG9Cu4eNhhiq/nNOlhjilLUWsBJ+EAeOhphd9axPhbb0C kGWEHZEKn3v+Gllrn/kbLYJ9lmSl12VcQCxgBahvanwgv1/w5/MCq3h4jmT93+KriLox CiNGDFrf4RYT6skK9AUHbT4Qi26EcCuFyBatA= Received: by 10.42.97.71 with SMTP id m7mr4731324icn.77.1302997124979; Sat, 16 Apr 2011 16:38:44 -0700 (PDT) Received: from DataIX.net (adsl-99-19-43-8.dsl.klmzmi.sbcglobal.net [99.19.43.8]) by mx.google.com with ESMTPS id xc15sm2073013icb.2.2011.04.16.16.38.43 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Apr 2011 16:38:43 -0700 (PDT) Sender: "J. Hellenthal" Received: from DataIX.net (localhost [127.0.0.1]) by DataIX.net (8.14.4/8.14.4) with ESMTP id p3GNce7b005969 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Apr 2011 19:38:40 -0400 (EDT) (envelope-from jhell@DataIX.net) Received: (from jhell@localhost) by DataIX.net (8.14.4/8.14.4/Submit) id p3GNcdYM005968; Sat, 16 Apr 2011 19:38:39 -0400 (EDT) (envelope-from jhell@DataIX.net) Date: Sat, 16 Apr 2011 19:38:39 -0400 From: "J. Hellenthal" To: Warren Block Message-ID: <20110416233839.GA72223@DataIX.net> References: <8CDCA9824BFE47E-176C-A720@web-mmc-d04.sysops.aol.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E X-OpenPGP-Key-URL: http://bit.ly/0x89D8547E 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: Sat, 16 Apr 2011 23:38:47 -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 --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (FreeBSD) Comment: http://bit.ly/0x89D8547E iQEcBAEBAgAGBQJNqih+AAoJEJBXh4mJ2FR+0YYH/RvGZP0VM3EPGh9xXX2MAAlZ 4YPxqABxxfUoHj8MOkYfIUx/Fzs38KGOfsm7o+uC/mYGKw0rpYttoUNyFpYrrWm/ rii7vsNZBA90s5fyvdiZy5IwsoT6aeDvHLVC5Y6TBBvqCk3O9tNlr+0RcP9lPoOp +p2mpptgtssosYj8lGByA0OwYyj3AD7MK5OGUY/f1hhKv88FKwziKoJzj4GPMhmV OHz1ZzvxjUIr4vDZOLsYjZCvldNIatUgPpJA5SX9sHdPu+ir6zTkOgaZZjsVy+re +IAVyXJMDMCJ0sWAsI0vJPp3LSVcXLj+eefgNPeVdMvmtzA0uEuDRtH3UAdAt60= =DcRK -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--