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">
6 SPDX-License-Identifier: LGPL-2.1+
10 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
13 <title>telinit
</title>
14 <productname>systemd
</productname>
18 <contrib>Developer
</contrib>
19 <firstname>Lennart
</firstname>
20 <surname>Poettering
</surname>
21 <email>lennart@poettering.net
</email>
27 <refentrytitle>telinit
</refentrytitle>
28 <manvolnum>8</manvolnum>
32 <refname>telinit
</refname>
33 <refpurpose>Change SysV runlevel
</refpurpose>
38 <command>telinit
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> <arg choice=
"req">COMMAND
</arg></command>
43 <title>Description
</title>
45 <para><command>telinit
</command> may be used to change the SysV
46 system runlevel. Since the concept of SysV runlevels is obsolete
47 the runlevel requests will be transparently translated into
48 systemd unit activation requests.
</para>
53 <title>Options
</title>
55 <para>The following options are understood:
</para>
59 <term><option>--help
</option></term>
61 <xi:include href=
"standard-options.xml" xpointer=
"help-text" />
65 <term><option>--no-wall
</option></term>
67 <listitem><para>Do not send wall message before
68 reboot/halt/power-off.
</para></listitem>
72 <para>The following commands are understood:
</para>
76 <term><command>0</command></term>
78 <listitem><para>Power-off the machine. This is translated into
79 an activation request for
<filename>poweroff.target
</filename>
80 and is equivalent to
<command>systemctl
81 poweroff
</command>.
</para></listitem>
85 <term><command>6</command></term>
87 <listitem><para>Reboot the machine. This is translated into an
88 activation request for
<filename>reboot.target
</filename> and
89 is equivalent to
<command>systemctl
90 reboot
</command>.
</para></listitem>
94 <term><command>2</command></term>
95 <term><command>3</command></term>
96 <term><command>4</command></term>
97 <term><command>5</command></term>
99 <listitem><para>Change the SysV runlevel. This is translated
100 into an activation request for
101 <filename>runlevel2.target
</filename>,
102 <filename>runlevel3.target
</filename>, … and is equivalent
103 to
<command>systemctl isolate runlevel2.target
</command>,
104 <command>systemctl isolate runlevel3.target
</command>,
109 <term><command>1</command></term>
110 <term><command>s
</command></term>
111 <term><command>S
</command></term>
113 <listitem><para>Change into system rescue mode. This is
114 translated into an activation request for
115 <filename>rescue.target
</filename> and is equivalent to
116 <command>systemctl rescue
</command>.
</para></listitem>
120 <term><command>q
</command></term>
121 <term><command>Q
</command></term>
123 <listitem><para>Reload daemon configuration. This is
124 equivalent to
<command>systemctl
125 daemon-reload
</command>.
</para></listitem>
129 <term><command>u
</command></term>
130 <term><command>U
</command></term>
132 <listitem><para>Serialize state, reexecute daemon and
133 deserialize state again. This is equivalent to
134 <command>systemctl daemon-reexec
</command>.
</para></listitem>
141 <title>Exit status
</title>
143 <para>On success,
0 is returned, a non-zero failure
144 code otherwise.
</para>
150 <para>This is a legacy command available for compatibility only.
151 It should not be used anymore, as the concept of runlevels is
156 <title>See Also
</title>
158 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
159 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
160 <citerefentry project='man-pages'
><refentrytitle>wall
</refentrytitle><manvolnum>1</manvolnum></citerefentry>