Date: Thu, 14 Jun 2018 07:20:17 +0800 From: blubee blubeeme <gurenchan@gmail.com> To: Valeri Galtsev <galtsev@kicp.uchicago.edu> Cc: freebsd-questions@freebsd.org Subject: Re: How to detect single user mode in FreeBSD ? Message-ID: <CALM2mEk9oVaswyAPLoe1G%2BgO1Ftyw0NOt_0eksn68m5mE0tHtQ@mail.gmail.com> In-Reply-To: <d4130902-917c-39d4-979a-87c3769bb620@kicp.uchicago.edu> References: <e9731c0f-1269-8919-836a-29b9a2f6b0dc@yandex.com> <c0718db9-8b46-2301-a770-cd334cbf0f07@ShaneWare.Biz> <f66e1b62-a6d5-c969-78ca-3ae9eb82efc5@yandex.com> <20180613141217.a3ab7160a55398bf5ed56ef2@sohara.org> <d4130902-917c-39d4-979a-87c3769bb620@kicp.uchicago.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 13, 2018, 22:49 Valeri Galtsev <galtsev@kicp.uchicago.edu> wrote: > > > On 06/13/18 08:12, Steve O'Hara-Smith wrote: > > On Wed, 13 Jun 2018 18:04:08 +0530 > > Manish Jain <jude.obscure@yandex.com> wrote: > > > >> Tx for replying. But don't you think there should ideally be a sysctl to > >> be detect the runlevel, particularly single user mode ? It makes things > > > > The runlevel concept comes from sysV init, it isn't a BSD thing at > > all. There isn't a real difference at all between single user and multi > > user. Single user mode is really just one of two states - before enabling > > ttys and running the rc scripts with start or after disabling the ttys > and > > running the rc.shutdown script. There's nothing special about it. > > > > If you feel a need to test for single user then you should probably > > be testing for something else - such as whether a filesystem is mounted > > before running fsck on it which is what really matters and is completely > > independent of whether or not the system is running multi-user. > > > Thanks, Steve, for great explanation! > > Being Linux refugee myself I know the gang from inside: we fall into > wide spread of the spectrum, from learning hard (or re-learning and > expanding knowledge in case of those of us who had a journey from UNIX > to Linus and back) to actively demanding introduction into FreeBSD of > familiar things: Linuxisms. Explanations like yours always are > ultimately teach Linux refugees what FreeBSD is, and hopefully makes > them (us ;-) stop demanding introduction of Linuxisms into FreeBSD. > I can't agree with you more. FreeBSD isn't a Linux distribution. > > Valeri > -- > ++++++++++++++++++++++++++++++++++++++++ > Valeri Galtsev > Sr System Administrator > Department of Astronomy and Astrophysics > Kavli Institute for Cosmological Physics > University of Chicago > Phone: 773-702-4247 > ++++++++++++++++++++++++++++++++++++++++ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALM2mEk9oVaswyAPLoe1G%2BgO1Ftyw0NOt_0eksn68m5mE0tHtQ>