Date: Fri, 15 Apr 2011 19:12:11 +0200 From: rank1seeker@gmail.com To: freebsd-hackers@freebsd.org Subject: Re: Add SUM sysctl Message-ID: <20110415.171211.343.3@DEV> In-Reply-To: <F8EA9C16-A114-4270-895D-477AFA2990C9@gsoft.com.au> References: <20110415.150349.671.1@DEV> <22B12EE4-AE7B-49F7-B6BA-3FE7F967F508@gsoft.com.au> <20110415.154921.875.2@DEV> <F8EA9C16-A114-4270-895D-477AFA2990C9@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 15/04/2011, at 17:49, rank1seeker@gmail.com wrote: > >> On 15/04/2011, at 17:03, rank1seeker@gmail.com wrote: > >>> I would like implementation of boolean sysctl var, that would show, is > > system in a single user mode. > >>> I would like it from 8.3 onwards. > >> > >> AFAIK the kernel doesn't have a "single user" mode. > >> > >> It's just that when you boot into single user mode it asks you want to > > run rather than starting /sbin/init. > > > > I see, but 'ps' shows /sbin/init as PID 1, in both SUM and MUM. > > How can I fiducially ensure that I am in SUM. > > On what to rely/look on. > > Oh oops, I guess the kernel runs init -s which then asks you.. So, what is solution? Currently I need to mess with lookup, in env variables. It must cover cases of rebooting into SUM and drop from MUM (# shutdown now) in SUM.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110415.171211.343.3>