* James FitzGibbon <[EMAIL PROTECTED]> [000829 15:08] wrote:
> Greetings...
>
> Is there an standard programmatic method for determining if a FreeBSD system
> is running in single or multi-user ? Sysctl doesn't seem to have a specific
> entry, but I suspect that the value of other less-well defined sysctl values
> might allow me to infer what I need.
>
> Any thoughts ?
>
the kernel is not really aware of the difference between single user
mode and multiuser, an interesting hack might be to make init use
setproctitle() to indicate whether it's in single user mode or not.
does anyone know if this could cause problems?
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message