'\" -*- coding: UTF-8 -*- .\" Copyright (C) 1997 Miquel van Smoorenburg. .\" .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later version. .\" .\" This program is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program; if not, write to the Free Software .\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH RUNLEVEL 8 "May 27, 1997" "sysvinit " "Manuel de l’Administrateur de Système Linux" .SH NOM runlevel \- find the previous and current system runlevel .SH SYNOPSIS \fBrunlevel\fP [\fIutmp\fP] .SH DESCRIPTION \fBrunlevel\fP reads the system \fIutmp\fP file (typically \fI/var/run/utmp\fP) to locate the runlevel record, and then prints the previous and current system runlevel on its standard output, separated by a single space. If there is no previous system runlevel, the letter \fBN\fP will be printed instead. .PP If no \fIutmp\fP file exists, and if no runlevel record can be found in the \fI/var/run/runlevel\fP file, \fBrunlevel\fP prints the word \fBunknown\fP and exits with an error. .PP \fBRunlevel\fP can be used in \fIrc\fP scripts as a substitute for the System\-V \fBwho \-r\fP command. However, in newer versions of \fBinit\fP(8) this information is also available in the environment variables \fBRUNLEVEL\fP and \fBPREVLEVEL\fP. .SH OPTIONS .\"{{{ utmp .IP \fIutmp\fP .\"}}} The name of the \fIutmp\fP file to read. .SH "VOIR AUSSI" \fBinit\fP(8), \fButmp\fP(5) .SH AUTEUR .MT miquels@\:cistron\:.nl Miquel van Smoorenburg .ME