1RUNLEVEL(8) Linux System Administrator's Manual RUNLEVEL(8)
2
3
4
6 runlevel -- find the current and previous system runlevel.
7
9 runlevel [utmp]
10
12 Runlevel reads the system utmp file (typically /var/run/utmp) to locate
13 the runlevel record, and then prints the previous and current system
14 runlevel on its standard output, separated by a single space. If there
15 is no previous system runlevel, the letter N will be printed instead.
16
17 If no utmp file exists, or if no runlevel record can be found, runlevel
18 prints the word unknown and exits with an error.
19
20 Runlevel can be used in rc scripts as a substitute for the System-V who
21 -r command. However, in newer versions of init(8) this information is
22 also available in the environment variables RUNLEVEL and PREVLEVEL.
23
25 utmp The name of the utmp file to read.
26
28 init(8), utmp(5)
29
31 Miquel van Smoorenburg, miquels@cistron.nl
32
33
34
35 May 27, 1997 RUNLEVEL(8)