1RUNLEVEL(8)                        runlevel                        RUNLEVEL(8)
2
3
4

NAME

6       runlevel - Print previous and current SysV runlevel
7

SYNOPSIS

9       runlevel [options...]
10

DESCRIPTION

12       runlevel prints the previous and current SysV runlevel if they are
13       known.
14
15       The two runlevel characters are separated by a single space character.
16       If a runlevel cannot be determined, N is printed instead. If neither
17       can be determined, the word "unknown" is printed.
18
19       Unless overridden in the environment, this will check the utmp database
20       for recent runlevel changes.
21

OPTIONS

23       The following option is understood:
24
25       --help
26           Prints a short help text and exits.
27

EXIT STATUS

29       If one or both runlevels could be determined, 0 is returned, a non-zero
30       failure code otherwise.
31

ENVIRONMENT

33       $RUNLEVEL
34           If $RUNLEVEL is set, runlevel will print this value as current
35           runlevel and ignore utmp.
36
37       $PREVLEVEL
38           If $PREVLEVEL is set runlevel will print this value as previous
39           runlevel and ignore utmp.
40

FILES

42       /var/run/utmp
43           The utmp database runlevel reads the previous and current runlevel
44           from.
45

NOTES

47       This is a legacy command available for compatibility only. It should
48       not be used anymore, as the concept of runlevels is obsolete.
49

SEE ALSO

51       systemd(1), systemctl(1)
52

AUTHOR

54       Lennart Poettering <lennart@poettering.net>
55           Developer
56
57
58
59systemd                           09/14/2010                       RUNLEVEL(8)
Impressum