table of contents
other sections
conflicting packages
runlevel(8) | System Manager's Manual | runlevel(8) |
NAME¶
runlevel - output previous and current runlevelSYNOPSIS¶
runlevel [OPTION]... [UTMP]DESCRIPTION¶
runlevel reads the system UTMP file, which defaults to /var/run/utmp when no alternate filename is given, to locate the most recent runlevel record.OPTIONS¶
- --quiet
- Does not output the current and previous runlevel, nor does
it output unknown in the case of error (but it will exit with an
error code).
EXIT STATUS¶
runlevel will exit with status 0 if a UTMP record was found, otherwise it will exit with status 1.ENVIRONMENT¶
- RUNLEVEL
- runlevel will read the current runlevel from this environment variable if set in preference to reading from /var/run/utmp
- PREVLEVEL
- runlevel will read the previous runlevel from this
environment variable if RUNLEVEL
was given, in preference to reading from /var/run/utmp
FILES¶
- /var/run/utmp
- Where the current and previous runlevels will be read from.
NOTES¶
The Upstart init(8) daemon does not keep track of runlevels itself, instead they are implemented entirely by its userspace tools.AUTHOR¶
Written by Scott James Remnant <scott@netsplit.com>REPORTING BUGS¶
Report bugs at <https://launchpad.net/upstart/+bugs>COPYRIGHT¶
Copyright © 2009 Canonical Ltd.SEE ALSO¶
runlevel(7) init(8) telinit(8) shutdown(8) who(1)2009-07-09 | Upstart |