Date: Sat, 16 Apr 2011 19:38:39 -0400 From: "J. Hellenthal" <jhell@DataIX.net> To: Warren Block <wblock@wonkity.com> Cc: freebsd-hackers@freebsd.org, dieterbsd@engineer.com Subject: Re: Add SUM sysctl Message-ID: <20110416233839.GA72223@DataIX.net> In-Reply-To: <alpine.BSF.2.00.1104161634150.5936@wonkity.com> References: <8CDCA9824BFE47E-176C-A720@web-mmc-d04.sysops.aol.com> <alpine.BSF.2.00.1104161634150.5936@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110416233839.GA72223>