telinit.xml revision 160cd5c9aa2301892e13950015de7968c764340d
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering<?xml version='1.0'?> <!--*-nxml-*-->
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering<!--
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering This file is part of systemd.
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering Copyright 2010 Lennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering systemd is free software; you can redistribute it and/or modify it
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering under the terms of the GNU General Public License as published by
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering the Free Software Foundation; either version 2 of the License, or
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering (at your option) any later version.
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering systemd is distributed in the hope that it will be useful, but
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering WITHOUT ANY WARRANTY; without even the implied warranty of
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering General Public License for more details.
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering You should have received a copy of the GNU General Public License
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering along with systemd; If not, see <http://www.gnu.org/licenses/>.
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering-->
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering<refentry id="telinit">
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refentryinfo>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <title>telinit</title>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <productname>systemd</productname>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <authorgroup>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <author>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <contrib>Developer</contrib>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <firstname>Lennart</firstname>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <surname>Poettering</surname>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <email>lennart@poettering.net</email>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </author>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </authorgroup>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refentryinfo>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refmeta>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refentrytitle>telinit</refentrytitle>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <manvolnum>8</manvolnum>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refmeta>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refnamediv>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refname>telinit</refname>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refpurpose>Change SysV runlevel</refpurpose>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refnamediv>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refsynopsisdiv>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <cmdsynopsis>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <command>telinit <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">COMMAND</arg></command>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </cmdsynopsis>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refsynopsisdiv>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <title>Description</title>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <para><command>telinit</command> may be used to change
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering the SysV system runlevel. Since the concept of SysV
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering runlevels is obsolete the runlevel requests
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering will be transparently translated into systemd unit
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering activation requests.</para>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <title>Options</title>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <para>The following options are understood:</para>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <variablelist>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><option>--help</option></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Prints a short help
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering text and exits.</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><option>--no-wall</option></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Don't send wall
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering message before
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering reboot/halt/power-off.</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </variablelist>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <para>The following commands are understood:</para>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <variablelist>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>0</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Power-off the
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering machine. This is translated into an
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering activation request for
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <filename>poweroff.target</filename>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering and is equivalent to
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <command>systemctl
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering poweroff</command>.</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>6</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Reboot the
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering machine. This is translated into an
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering activation request for
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <filename>reboot.target</filename> and
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering is equivalent to <command>systemctl
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering reboot</command>.</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>2</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>3</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>4</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>5</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Change the SysV
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering runlevel. This is translated into an
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering activation request for
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <filename>runlevel2.target</filename>,
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <filename>runlevel3.target</filename>,
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering ... and is equivalent to
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <command>systemctl start
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering runlevel2.target</command>,
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <command>systemctl start
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering runlevel3.target</command>,
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering ...</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>1</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>s</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>S</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Change into system
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering rescue mode. This is translated into
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering an activation request for
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <filename>rescue.target</filename> and
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering is equivalent to <command>systemctl
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering rescue</command>.</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>q</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>Q</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Reload daemon
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering configuration. This is equivalent to
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <command>systemctl
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering daemon-reload</command>.</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>u</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <term><command>U</command></term>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <listitem><para>Serialize state,
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering reexecute daemon and deserialize state
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering again. This is equivalent to
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <command>systemctl
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering daemon-reexec</command>.</para></listitem>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </varlistentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </variablelist>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <title>Exit status</title>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <para>On success 0 is returned, a non-zero failure
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering code otherwise.</para>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <title>Notes</title>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <para>This is a legacy command available for compatibility
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering only. It should not be used anymore, as the concept of
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering runlevels is obsolete.</para>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <title>See Also</title>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <para>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </para>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering </refsect1>
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering
160cd5c9aa2301892e13950015de7968c764340dLennart Poettering</refentry>