Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Change Runlevel

Hello Folks,

I have searched the Inet and here and the Apple developer site and cannot find how to change from one runlevel (or whatever they call it now) to another. I know about command+s while booting so no bull answers please.

In the old days one could pass an argument to init but alas we have no init these days. I suspect launctl or sysctl could do it but the man pages give no clue.

I can of course do this easily in Linux or any other Un*x OS that I have used including HPUX, Sys V, and SCO Unix.

Please someone clue me in before I pull out what little hair I have left.

Y'all have fun,
Robert

It's Got Dem Holes&TWO 2GHZ, Mac OS X (10.4.7), 2GB RAM, Kona LH, Granite Digital Raid 0, & Studio MBP 17"

Posted on Jul 4, 2006 6:39 AM

Reply
5 replies

Jul 4, 2006 9:03 AM in response to Robert Ober

Hi Robert,
You're right this is easy but there's no bull in Mihalis's answer. OK, no bull from one southerner to another, there ain't no such a thing! Your resumé is System V types and Linux but Mac OS X is based on BSD and Berkeley's version had no run levels. While many BSD derivatives have adopted the multiple-script rc.d architecture, Apple is trying to develop a replacement, launchd.

Thinking about this has caused me to think of what I believe to be missing from launchd. Launchd is a basically simple concept, "event-driven process initialization". What I think is missing is the concept of "service availability" as one of the events to which launchd can respond. That way you could have startup "chains" that determine dependencies.

I apologize for the above diversion but since you asked about something that doesn't exist, there's not a lot one can say beyond that fact. I know it's not what you wanted to hear but that doesn't make it bull and it's impolite of you to suggest that it is, especially when the difficulty ultimately derives from your question. Maybe if you described what you ultimately want to accomplish, someone could find a way to do it.
--
Gary
~~~~
Aphasia:
Loss of speech in social scientists when asked
at parties, "But of what use is your research?"

Sep 15, 2006 6:57 AM in response to Robert Ober

How would I go to single user mode after booting normally?
Gary's link shows one method, in a somewhat abnormal context. The essential bit is

sudo shutdown now

which you can do from Terminal.

I have also seen this posted on osxfaq.com. When I tried it (must be a couple of years ago now) I seemed to get messages all over the place so I prefer a simple reboot holding Command-S.

Change Runlevel

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.