Annotated edit history of
runlevel(8) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
RUNLEVEL |
|
|
2 |
!!!RUNLEVEL |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
SEE ALSO |
|
|
8 |
AUTHOR |
|
|
9 |
---- |
|
|
10 |
!!NAME |
|
|
11 |
|
|
|
12 |
|
|
|
13 |
runlevel -- find the current and previous system runlevel. |
|
|
14 |
!!SYNOPSIS |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
__runlevel__ [[''utmp''] |
|
|
18 |
!!DESCRIPTION |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
__Runlevel__ reads the system ''utmp'' file (typically |
|
|
22 |
''/var/run/utmp'') to locate the runlevel record, and |
|
|
23 |
then prints the previous and current system runlevel on its |
|
|
24 |
standard output, separated by a single space. If there is no |
|
|
25 |
previous system runlevel, the letter __N__ will be |
|
|
26 |
printed instead. |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
If no ''utmp'' file exists, or if no runlevel record can |
|
|
30 |
be found, __runlevel__ prints the word __unknown__ and |
|
|
31 |
exits with an error. |
|
|
32 |
|
|
|
33 |
|
|
|
34 |
__Runlevel__ can be used in ''rc'' scripts as a |
|
|
35 |
substitute for the System-V __who -r__ command. However, |
|
|
36 |
in newer versions of init(8) this information is also |
|
|
37 |
available in the environment variables __RUNLEVEL__ and |
|
|
38 |
__PREVLEVEL__. |
|
|
39 |
!!OPTIONS |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
''utmp'' |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
The name of the ''utmp'' file to read. |
|
|
46 |
!!SEE ALSO |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
init(8), utmp(5) |
|
|
50 |
!!AUTHOR |
|
|
51 |
|
|
|
52 |
|
|
|
53 |
Miquel van Smoorenburg, miquels@cistron.nl |
|
|
54 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.