Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jun 2018 14:12:17 +0100
From:      Steve O'Hara-Smith <>
Subject:   Re: How to detect single user mode in FreeBSD ?
Message-ID:  <>
In-Reply-To: <>
References:  <> <c0718db9-8b46-2301-a770-cd334cbf0f07@ShaneWare.Biz> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, 13 Jun 2018 18:04:08 +0530
Manish Jain <> 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.

Steve O'Hara-Smith <>

Want to link to this message? Use this URL: <>