1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4 <!ENTITY % entities SYSTEM
"custom-entities.ent" >
9 This file is part of systemd.
11 Copyright 2010 Lennart Poettering
13 systemd is free software; you can redistribute it and/or modify it
14 under the terms of the GNU Lesser General Public License as published by
15 the Free Software Foundation; either version 2.1 of the License, or
16 (at your option) any later version.
18 systemd is distributed in the hope that it will be useful, but
19 WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Lesser General Public License for more details.
23 You should have received a copy of the GNU Lesser General Public License
24 along with systemd; If not, see <http://www.gnu.org/licenses/>.
27 <refentry id=
"telinit"
28 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
31 <title>telinit
</title>
32 <productname>systemd
</productname>
36 <contrib>Developer
</contrib>
37 <firstname>Lennart
</firstname>
38 <surname>Poettering
</surname>
39 <email>lennart@poettering.net
</email>
45 <refentrytitle>telinit
</refentrytitle>
46 <manvolnum>8</manvolnum>
50 <refname>telinit
</refname>
51 <refpurpose>Change SysV runlevel
</refpurpose>
56 <command>telinit
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> <arg choice=
"req">COMMAND
</arg></command>
61 <title>Description
</title>
63 <para><command>telinit
</command> may be used to change the SysV
64 system runlevel. Since the concept of SysV runlevels is obsolete
65 the runlevel requests will be transparently translated into
66 systemd unit activation requests.
</para>
71 <title>Options
</title>
73 <para>The following options are understood:
</para>
77 <term><option>--help
</option></term>
79 <xi:include href=
"standard-options.xml" xpointer=
"help-text" />
83 <term><option>--no-wall
</option></term>
85 <listitem><para>Do not send wall message before
86 reboot/halt/power-off.
</para></listitem>
90 <para>The following commands are understood:
</para>
94 <term><command>0</command></term>
96 <listitem><para>Power-off the machine. This is translated into
97 an activation request for
<filename>poweroff.target
</filename>
98 and is equivalent to
<command>systemctl
99 poweroff
</command>.
</para></listitem>
103 <term><command>6</command></term>
105 <listitem><para>Reboot the machine. This is translated into an
106 activation request for
<filename>reboot.target
</filename> and
107 is equivalent to
<command>systemctl
108 reboot
</command>.
</para></listitem>
112 <term><command>2</command></term>
113 <term><command>3</command></term>
114 <term><command>4</command></term>
115 <term><command>5</command></term>
117 <listitem><para>Change the SysV runlevel. This is translated
118 into an activation request for
119 <filename>runlevel2.target
</filename>,
120 <filename>runlevel3.target
</filename>, ... and is equivalent
121 to
<command>systemctl isolate runlevel2.target
</command>,
122 <command>systemctl isolate runlevel3.target
</command>,
123 ...
</para></listitem>
127 <term><command>1</command></term>
128 <term><command>s
</command></term>
129 <term><command>S
</command></term>
131 <listitem><para>Change into system rescue mode. This is
132 translated into an activation request for
133 <filename>rescue.target
</filename> and is equivalent to
134 <command>systemctl rescue
</command>.
</para></listitem>
138 <term><command>q
</command></term>
139 <term><command>Q
</command></term>
141 <listitem><para>Reload daemon configuration. This is
142 equivalent to
<command>systemctl
143 daemon-reload
</command>.
</para></listitem>
147 <term><command>u
</command></term>
148 <term><command>U
</command></term>
150 <listitem><para>Serialize state, reexecute daemon and
151 deserialize state again. This is equivalent to
152 <command>systemctl daemon-reexec
</command>.
</para></listitem>
159 <title>Exit status
</title>
161 <para>On success,
0 is returned, a non-zero failure
162 code otherwise.
</para>
168 <para>This is a legacy command available for compatibility only.
169 It should not be used anymore, as the concept of runlevels is
174 <title>See Also
</title>
176 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
177 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
178 <citerefentry project='man-pages'
><refentrytitle>wall
</refentrytitle><manvolnum>1</manvolnum></citerefentry>