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