Date: Sat, 20 Mar 1999 14:23:20 -0500 From: Paul Murphy <pmurphy@earthling.net> To: freebsd-questions@FreeBSD.ORG Subject: Re: runlevels ? Message-ID: <36F3F5A8.59CAF79A@earthling.net> References: <4.1.19990317173322.00918930@mail-r> <36F0BB50.6F2309@uk.radan.com>
next in thread | previous in thread | raw e-mail | index | archive | help
From Slackware Linux man page [INIT(8)]: RUNLEVELS A runlevel is a software configuration of the system which allows only a selected group of processes to exist. The processes spawned by init for each of these runlevels are defined in the /etc/inittab file. Init can be in one of eight runlevels: 0-6 and S or s. The runlevel is changed by having a privileged user run telinit, which sends appropriate signals to init, telling it which runlevel to change to. [snip] After it has spawned all of the processes specified, init waits for one of its descendant processes to die, a power- fail signal, or until it is signaled by telinit to change the system's runlevel. When one of the above three condi- tions occurs, it re-examines the /etc/inittab file. New entries can be added to this file at any time. However, init still waits for one of the above three conditions to occur. To provide for an instantaneous response, the telinit Q or q command can wake up init to re-examine the /etc/inittab file. [snip] ENVIRONMENT Init sets the following environment variables for all its children: PATH /usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin INIT_VERSION As the name says. Useful to determine if a script runs directly from init. [note: this may be the answer to the ORIGINAL question] RUNLEVEL The current system runlevel. PREVLEVEL The previous runlevel (useful after a runlevel switch). CONSOLE The system console. This is really inherited from the kernel; however if it is not set init will set it to /dev/console by default. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36F3F5A8.59CAF79A>