Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2011 16:46:53 -0600 (MDT)
From:      Warren Block <wblock@wonkity.com>
To:        dieterbsd@engineer.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Add SUM sysctl
Message-ID:  <alpine.BSF.2.00.1104161634150.5936@wonkity.com>
In-Reply-To: <8CDCA9824BFE47E-176C-A720@web-mmc-d04.sysops.aol.com>
References:  <8CDCA9824BFE47E-176C-A720@web-mmc-d04.sysops.aol.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1104161634150.5936>