Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 20:38:08 +0530
From:      Manish Jain <jude.obscure@yandex.com>
To:        freebsd-questions@freebsd.org
Subject:   How to detect single user mode in FreeBSD ?
Message-ID:  <e9731c0f-1269-8919-836a-29b9a2f6b0dc@yandex.com>

next in thread | raw e-mail | index | archive | help
Hi,


I am writing an fsck wrapper which first needs to check if the system is 
in single user mode.

Under Linux, there appears to be a sysctl that shows whether the system 
is in single user

mode:  sysctl -n kern.singleuser. Is there some similar facility under 
FreeBSD too ?


Thanks for any tips.

Manish Jain





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e9731c0f-1269-8919-836a-29b9a2f6b0dc>