How to detect single user mode in FreeBSD ?

Manish Jain jude.obscure at
Tue Jun 12 15:09:50 UTC 2018


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

More information about the freebsd-questions mailing list