telinit.xml revision 798d3a524ea57aaf40cb53858aaa45ec702f012d
499b34cea04a46823d003d4c0520c8b03e8513cbBrian Wellington<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff This file is part of systemd.
15a44745412679c30a6d022733925af70a38b715David Lawrence Copyright 2010 Lennart Poettering
15a44745412679c30a6d022733925af70a38b715David Lawrence systemd is free software; you can redistribute it and/or modify it
15a44745412679c30a6d022733925af70a38b715David Lawrence under the terms of the GNU Lesser General Public License as published by
15a44745412679c30a6d022733925af70a38b715David Lawrence the Free Software Foundation; either version 2.1 of the License, or
15a44745412679c30a6d022733925af70a38b715David Lawrence (at your option) any later version.
15a44745412679c30a6d022733925af70a38b715David Lawrence systemd is distributed in the hope that it will be useful, but
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff WITHOUT ANY WARRANTY; without even the implied warranty of
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f3ca27e9fe307b55e35ea8d7b37351650630e5a3Andreas Gustafsson Lesser General Public License for more details.
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff You should have received a copy of the GNU Lesser General Public License
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff along with systemd; If not, see <http://www.gnu.org/licenses/>.
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff <refentryinfo>
294802790e8030f1c19b6c2c5d5204b6f464c729Michael Graff <authorgroup>
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff </authorgroup>
058eeac2105c39e7cb31fb75ee0b473717ec3bbcMark Andrews </refentryinfo>
fe14eafefa91fada7cea0a55b09196c01477406cBob Halley </refnamediv>
29f28fe573d4b3b318b3b026d567c1eb86738015Michael Graff <refsynopsisdiv>
86944a4c8002e80ae9b6eb5a5e29b797879be45fMichael Graff <cmdsynopsis>
21e7034ec046105c00a0dab86c83732e2e77ad99Michael Graff <command>telinit <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">COMMAND</arg></command>
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael Graff </cmdsynopsis>
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael Graff </refsynopsisdiv>
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence <para><command>telinit</command> may be used to change the SysV
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff system runlevel. Since the concept of SysV runlevels is obsolete
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence the runlevel requests will be transparently translated into
31fab17bcdbe302592a6c0dc5374ef56333ee879Michael Graff systemd unit activation requests.</para>
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence <para>The following options are understood:</para>
92ef1a9b9dbd48ecb507b42ac62c15afefdaf838David Lawrence <variablelist>
fe14eafefa91fada7cea0a55b09196c01477406cBob Halley <varlistentry>
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley <xi:include href="standard-options.xml" xpointer="help-text" />
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley </varlistentry>
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff <varlistentry>
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graff <listitem><para>Do not send wall message before
d947011dc393d9f9988d1349d585b246d19cc3c7Michael Graff </varlistentry>
d947011dc393d9f9988d1349d585b246d19cc3c7Michael Graff </variablelist>
3115cd89bc1e1fd3ecc4705d253e3484a3f5c555Michael Graff <para>The following commands are understood:</para>
a14eb88840e06b8d458c1556e5452b6d2a50012eMichael Graff <variablelist>
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff <varlistentry>
7b5172166d816efabcdb22519b136ba124bb2619Brian Wellington <listitem><para>Power-off the machine. This is translated into
8cdfd17426179ae6f629a9b7475d46a22f535047Bob Halley an activation request for <filename>poweroff.target</filename>
7b5172166d816efabcdb22519b136ba124bb2619Brian Wellington and is equivalent to <command>systemctl
7b5172166d816efabcdb22519b136ba124bb2619Brian Wellington </varlistentry>
acafce24bbc6140464302fb18c729791f1bfddd6Michael Graff <varlistentry>
64828244e04e86dfa40f0a4f0c05f27923da499dMichael Graff <listitem><para>Reboot the machine. This is translated into an
64828244e04e86dfa40f0a4f0c05f27923da499dMichael Graff activation request for <filename>reboot.target</filename> and
081cff0c33514a5dc63ab794fc199c07377ab756Mark Andrews is equivalent to <command>systemctl
213973a334f92d4aef4ef62b4538fc2e4d0e8082Michael Graff </varlistentry>
ff9bb3fc5453bbf310b67c560fbf04a5c0fb60daMichael Graff <varlistentry>
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff <listitem><para>Change the SysV runlevel. This is translated
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff into an activation request for
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff <filename>runlevel3.target</filename>, ... and is equivalent
78bf1ca89505820ed7b03be4bf0c0b53b557f3cdAndreas Gustafsson to <command>systemctl isolate runlevel2.target</command>,
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff <command>systemctl isolate runlevel3.target</command>,
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael Graff </varlistentry>
11efdeb076d65fa9f0c5fc067dc040e7c99dfba6Michael Graff <varlistentry>
a44c12b332b867f29631e235eb11d1263c73d6c0Bob Halley <listitem><para>Change into system rescue mode. This is
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff translated into an activation request for
30251e07d1705d1a85b0e1d5a969496e1aed612eMichael Graff <filename>rescue.target</filename> and is equivalent to
30251e07d1705d1a85b0e1d5a969496e1aed612eMichael Graff <command>systemctl rescue</command>.</para></listitem>
e51511aa3281f8dc384eb1283115c7f8d5c402aeMichael Graff </varlistentry>
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff <varlistentry>
2992344aacdb08e4af936c176d49ef789f5673ddMichael Graff <listitem><para>Reload daemon configuration. This is
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff equivalent to <command>systemctl
fe14eafefa91fada7cea0a55b09196c01477406cBob Halley </varlistentry>
213973a334f92d4aef4ef62b4538fc2e4d0e8082Michael Graff <varlistentry>
213973a334f92d4aef4ef62b4538fc2e4d0e8082Michael Graff <listitem><para>Serialize state, reexecute daemon and
6dde125c2f47617ceef1518cf9e5588e8f366b71Michael Graff deserialize state again. This is equivalent to
6dde125c2f47617ceef1518cf9e5588e8f366b71Michael Graff <command>systemctl daemon-reexec</command>.</para></listitem>
6dde125c2f47617ceef1518cf9e5588e8f366b71Michael Graff </varlistentry>
213973a334f92d4aef4ef62b4538fc2e4d0e8082Michael Graff </variablelist>
6dde125c2f47617ceef1518cf9e5588e8f366b71Michael Graff <para>On success, 0 is returned, a non-zero failure
6dde125c2f47617ceef1518cf9e5588e8f366b71Michael Graff code otherwise.</para>
59c049874bbef182857c57bd9cca292898921c69Bob Halley <para>This is a legacy command available for compatibility only.
59c049874bbef182857c57bd9cca292898921c69Bob Halley It should not be used anymore, as the concept of runlevels is
66bd3b3c6b171271c705b897823dcdcf29464698Michael Graff obsolete.</para>
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
11fcc67616fac1bc6a28b3d4fed24641137888e7Michael Graff <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
ad3a5c4b7e21af04d1b872f933c2e19e5c0a135bMichael Graff <citerefentry project='man-pages'><refentrytitle>wall</refentrytitle><manvolnum>1</manvolnum></citerefentry>