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 <refentrytitle>telinit
</refentrytitle>
19 <manvolnum>8</manvolnum>
23 <refname>telinit
</refname>
24 <refpurpose>Change SysV runlevel
</refpurpose>
29 <command>telinit
<arg choice=
"opt" rep=
"repeat">OPTIONS
</arg> <arg choice=
"req">COMMAND
</arg></command>
34 <title>Description
</title>
36 <para><command>telinit
</command> may be used to change the SysV
37 system runlevel. Since the concept of SysV runlevels is obsolete
38 the runlevel requests will be transparently translated into
39 systemd unit activation requests.
</para>
44 <title>Options
</title>
46 <para>The following options are understood:
</para>
50 <term><option>--help
</option></term>
52 <xi:include href=
"standard-options.xml" xpointer=
"help-text" />
56 <term><option>--no-wall
</option></term>
58 <listitem><para>Do not send wall message before
59 reboot/halt/power-off.
</para></listitem>
63 <para>The following commands are understood:
</para>
67 <term><command>0</command></term>
69 <listitem><para>Power-off the machine. This is translated into
70 an activation request for
<filename>poweroff.target
</filename>
71 and is equivalent to
<command>systemctl
72 poweroff
</command>.
</para></listitem>
76 <term><command>6</command></term>
78 <listitem><para>Reboot the machine. This is translated into an
79 activation request for
<filename>reboot.target
</filename> and
80 is equivalent to
<command>systemctl
81 reboot
</command>.
</para></listitem>
85 <term><command>2</command></term>
86 <term><command>3</command></term>
87 <term><command>4</command></term>
88 <term><command>5</command></term>
90 <listitem><para>Change the SysV runlevel. This is translated
91 into an activation request for
92 <filename>runlevel2.target
</filename>,
93 <filename>runlevel3.target
</filename>, … and is equivalent
94 to
<command>systemctl isolate runlevel2.target
</command>,
95 <command>systemctl isolate runlevel3.target
</command>,
100 <term><command>1</command></term>
101 <term><command>s
</command></term>
102 <term><command>S
</command></term>
104 <listitem><para>Change into system rescue mode. This is
105 translated into an activation request for
106 <filename>rescue.target
</filename> and is equivalent to
107 <command>systemctl rescue
</command>.
</para></listitem>
111 <term><command>q
</command></term>
112 <term><command>Q
</command></term>
114 <listitem><para>Reload daemon configuration. This is
115 equivalent to
<command>systemctl
116 daemon-reload
</command>.
</para></listitem>
120 <term><command>u
</command></term>
121 <term><command>U
</command></term>
123 <listitem><para>Serialize state, reexecute daemon and
124 deserialize state again. This is equivalent to
125 <command>systemctl daemon-reexec
</command>.
</para></listitem>
132 <title>Exit status
</title>
134 <para>On success,
0 is returned, a non-zero failure
135 code otherwise.
</para>
141 <para>This is a legacy command available for compatibility only.
142 It should not be used anymore, as the concept of runlevels is
147 <title>See Also
</title>
149 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
150 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
151 <citerefentry project='man-pages'
><refentrytitle>wall
</refentrytitle><manvolnum>1</manvolnum></citerefentry>