man: add more man pages
This commit is contained in:
parent
daaa7e5a65
commit
160cd5c9aa
20
Makefile.am
20
Makefile.am
|
@ -308,14 +308,18 @@ dist_man_MANS = \
|
||||||
man/systemd.unit.5 \
|
man/systemd.unit.5 \
|
||||||
man/systemd.service.5 \
|
man/systemd.service.5 \
|
||||||
man/daemon.7 \
|
man/daemon.7 \
|
||||||
man/systemd.8 \
|
man/systemd.1 \
|
||||||
man/sd_notify.3 \
|
man/sd_notify.3 \
|
||||||
man/sd_booted.3 \
|
man/sd_booted.3 \
|
||||||
man/sd_listen_fds.3 \
|
man/sd_listen_fds.3 \
|
||||||
man/sd_is_fifo.3 \
|
man/sd_is_fifo.3 \
|
||||||
man/sd-daemon.7 \
|
man/sd-daemon.7 \
|
||||||
man/runlevel.8 \
|
man/runlevel.8 \
|
||||||
man/systemd-install.1
|
man/telinit.8 \
|
||||||
|
man/halt.8 \
|
||||||
|
man/shutdown.8 \
|
||||||
|
man/systemd-install.1 \
|
||||||
|
man/pam_systemd.8
|
||||||
|
|
||||||
nodist_man_MANS = \
|
nodist_man_MANS = \
|
||||||
man/systemd.special.7
|
man/systemd.special.7
|
||||||
|
@ -331,7 +335,11 @@ dist_noinst_DATA = \
|
||||||
man/sd_is_fifo.html \
|
man/sd_is_fifo.html \
|
||||||
man/sd-daemon.html \
|
man/sd-daemon.html \
|
||||||
man/runlevel.html \
|
man/runlevel.html \
|
||||||
man/systemd-install.html
|
man/telinit.html \
|
||||||
|
man/halt.html \
|
||||||
|
man/shutdown.html \
|
||||||
|
man/systemd-install.html \
|
||||||
|
man/pam_systemd.html
|
||||||
|
|
||||||
nodist_noinst_DATA = \
|
nodist_noinst_DATA = \
|
||||||
man/systemd.special.html
|
man/systemd.special.html
|
||||||
|
@ -350,7 +358,11 @@ EXTRA_DIST += \
|
||||||
man/sd_is_fifo.xml \
|
man/sd_is_fifo.xml \
|
||||||
man/sd-daemon.xml \
|
man/sd-daemon.xml \
|
||||||
man/runlevel.xml \
|
man/runlevel.xml \
|
||||||
man/systemd-install.xml
|
man/telinit.xml \
|
||||||
|
man/halt.xml \
|
||||||
|
man/shutdown.xml \
|
||||||
|
man/systemd-install.xml \
|
||||||
|
man/pam_systemd.xml
|
||||||
|
|
||||||
systemd_SOURCES = \
|
systemd_SOURCES = \
|
||||||
src/main.c
|
src/main.c
|
||||||
|
|
|
@ -308,6 +308,7 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
|
|
180
man/halt.xml
Normal file
180
man/halt.xml
Normal file
|
@ -0,0 +1,180 @@
|
||||||
|
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||||
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is part of systemd.
|
||||||
|
|
||||||
|
Copyright 2010 Lennart Poettering
|
||||||
|
|
||||||
|
systemd is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
systemd is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<refentry id="halt">
|
||||||
|
|
||||||
|
<refentryinfo>
|
||||||
|
<title>halt</title>
|
||||||
|
<productname>systemd</productname>
|
||||||
|
|
||||||
|
<authorgroup>
|
||||||
|
<author>
|
||||||
|
<contrib>Developer</contrib>
|
||||||
|
<firstname>Lennart</firstname>
|
||||||
|
<surname>Poettering</surname>
|
||||||
|
<email>lennart@poettering.net</email>
|
||||||
|
</author>
|
||||||
|
</authorgroup>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>halt</refentrytitle>
|
||||||
|
<manvolnum>8</manvolnum>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>halt</refname>
|
||||||
|
<refname>poweroff</refname>
|
||||||
|
<refname>reboot</refname>
|
||||||
|
<refpurpose>Halt, power-off or reboot the machine</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>halt <arg choice="opt" rep="repeat">OPTIONS</arg></command>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>poweroff <arg choice="opt" rep="repeat">OPTIONS</arg></command>
|
||||||
|
</cmdsynopsis>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>reboot <arg choice="opt" rep="repeat">OPTIONS</arg></command>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Description</title>
|
||||||
|
|
||||||
|
<para><command>halt</command>,
|
||||||
|
<command>poweroff</command>, <command>reboot</command>
|
||||||
|
may be used to halt, power-off or reboot the
|
||||||
|
machine.</para>
|
||||||
|
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Options</title>
|
||||||
|
|
||||||
|
<para>The following options are understood:</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--help</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Prints a short help
|
||||||
|
text and exits.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--halt</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Halt the machine,
|
||||||
|
regardless which one of the three
|
||||||
|
commands is invoked.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-p</option></term>
|
||||||
|
<term><option>--poweroff</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Power-off the machine,
|
||||||
|
regardless which one of the three
|
||||||
|
commands is invoked.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--reboot</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Reboot the machine,
|
||||||
|
regardless which one of the three
|
||||||
|
commands is invoked.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-f</option></term>
|
||||||
|
<term><option>--force</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Force immediate halt,
|
||||||
|
power-off, reboot. Don't contact the
|
||||||
|
init system.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-w</option></term>
|
||||||
|
<term><option>--wtmp-only</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Only write wtmp
|
||||||
|
shutdown entry, don't actually halt,
|
||||||
|
power-off, reboot.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-d</option></term>
|
||||||
|
<term><option>--no-wtmp</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Don't write wtmp
|
||||||
|
shutdown entry.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-n</option></term>
|
||||||
|
<term><option>--no-sync</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Don't sync hard disks/storage media before
|
||||||
|
halt, power-off,
|
||||||
|
reboot.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--no-wall</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Don't send wall
|
||||||
|
message before
|
||||||
|
halt, power-off, reboot.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Exit status</title>
|
||||||
|
|
||||||
|
<para>On success 0 is returned, a non-zero failure
|
||||||
|
code otherwise.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Notes</title>
|
||||||
|
|
||||||
|
<para>These are legacy commands available for
|
||||||
|
compatibility only.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>See Also</title>
|
||||||
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>shutdown</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry>
|
296
man/pam_systemd.xml
Normal file
296
man/pam_systemd.xml
Normal file
|
@ -0,0 +1,296 @@
|
||||||
|
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||||
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is part of systemd.
|
||||||
|
|
||||||
|
Copyright 2010 Lennart Poettering
|
||||||
|
|
||||||
|
systemd is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
systemd is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<refentry id="pam_systemd">
|
||||||
|
|
||||||
|
<refentryinfo>
|
||||||
|
<title>pam_systemd</title>
|
||||||
|
<productname>systemd</productname>
|
||||||
|
|
||||||
|
<authorgroup>
|
||||||
|
<author>
|
||||||
|
<contrib>Developer</contrib>
|
||||||
|
<firstname>Lennart</firstname>
|
||||||
|
<surname>Poettering</surname>
|
||||||
|
<email>lennart@poettering.net</email>
|
||||||
|
</author>
|
||||||
|
</authorgroup>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>pam_systemd</refentrytitle>
|
||||||
|
<manvolnum>8</manvolnum>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>pam_systemd</refname>
|
||||||
|
<refpurpose>Register user sessions in the systemd control group hierarchy</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>pam_systemd.so</command>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Description</title>
|
||||||
|
|
||||||
|
<para><command>pam_systemd</command> registers user
|
||||||
|
sessions in the systemd control group
|
||||||
|
hierarchy.</para>
|
||||||
|
|
||||||
|
<para>On login, this module ensures the following:</para>
|
||||||
|
|
||||||
|
<orderedlist>
|
||||||
|
<listitem><para>If it does not exist yet the
|
||||||
|
user runtime directory
|
||||||
|
<filename>/var/run/user/$USER</filename> is
|
||||||
|
created and its ownership changed to the user
|
||||||
|
that is logging in.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>If
|
||||||
|
<option>create-session=1</option> is set the
|
||||||
|
<varname>$XDG_SESSION_ID</varname> environment
|
||||||
|
variable is initialized. If auditing is
|
||||||
|
available and
|
||||||
|
<command>pam_loginuid.so</command> run before
|
||||||
|
this module (which es recommended), the
|
||||||
|
variable is initialized from the auditing
|
||||||
|
session id
|
||||||
|
(<filename>/proc/self/sessionid</filename>). Otherwise
|
||||||
|
an independent session counter is
|
||||||
|
used.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>If
|
||||||
|
<option>create-session=1</option> is set a new
|
||||||
|
control group
|
||||||
|
<filename>/user/$USER/$XDG_SESSION_ID</filename>
|
||||||
|
is created and the login process moved into
|
||||||
|
it.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>If
|
||||||
|
<option>create-session=0</option> is set a new
|
||||||
|
control group
|
||||||
|
<filename>/user/$USER/no-session</filename>
|
||||||
|
is created and the login process moved into
|
||||||
|
it.</para></listitem>
|
||||||
|
|
||||||
|
</orderedlist>
|
||||||
|
|
||||||
|
<para>On logout, this module ensures the following:</para>
|
||||||
|
|
||||||
|
<orderedlist>
|
||||||
|
<listitem><para>If
|
||||||
|
<varname>$XDG_SESSION_ID</varname> is set and
|
||||||
|
<option>kill-session=1</option> specified, all
|
||||||
|
remaining processes in the
|
||||||
|
<filename>/user/$USER/$XDG_SESSION_ID</filename>
|
||||||
|
control group are killed and the control group
|
||||||
|
removed.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>If
|
||||||
|
<varname>$XDG_SESSION_ID</varname> is set and
|
||||||
|
<option>kill-session=0</option> specified, all
|
||||||
|
remaining processes in the
|
||||||
|
<filename>/user/$USER/$XDG_SESSION_ID</filename>
|
||||||
|
control group are migrated to
|
||||||
|
<filename>/user/$USER/no-session</filename> and
|
||||||
|
the original control group
|
||||||
|
removed.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>If
|
||||||
|
<option>kill-user=1</option> is specified, and
|
||||||
|
no other user session control group remains
|
||||||
|
except
|
||||||
|
<filename>/user/$USER/no-session</filename>
|
||||||
|
all remaining processes in the
|
||||||
|
<filename>/user/$USER</filename> hierarchy
|
||||||
|
are killed and the control group removed.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>If
|
||||||
|
<option>kill-user=0</option> is specified, and
|
||||||
|
no process remains in the
|
||||||
|
<filename>/user/$USER</filename> hierarchy the
|
||||||
|
control group is removed.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>If the
|
||||||
|
<filename>/user/$USER</filename> control group
|
||||||
|
was removed the
|
||||||
|
<varname>$XDG_RUNTIME_DIR</varname> directory
|
||||||
|
and all its contents are
|
||||||
|
removed, too.</para></listitem>
|
||||||
|
</orderedlist>
|
||||||
|
|
||||||
|
<para>If the system was not booted up with systemd as
|
||||||
|
init system this module does nothing and immediately
|
||||||
|
returns PAM_SUCCESS.</para>
|
||||||
|
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Options</title>
|
||||||
|
|
||||||
|
<para>The following options are understood:</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>create-session=</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Takes a boolean
|
||||||
|
argument. If true, a new session is
|
||||||
|
created: the
|
||||||
|
<varname>$XDG_SESSION_ID</varname>
|
||||||
|
environment variable is set and the
|
||||||
|
login process moved to the
|
||||||
|
<filename>/user/$USER/$XDG_SESSION_ID</filename>
|
||||||
|
control group. It is recommended that
|
||||||
|
all services that are directly created
|
||||||
|
on the user's behalf set this
|
||||||
|
option. Only for services that shall
|
||||||
|
automatically be terminated when the
|
||||||
|
user logs out completely otherwise,
|
||||||
|
<varname>create-session=0</varname>
|
||||||
|
should be set.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>kill-session=</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Takes a boolean
|
||||||
|
argument. If true, all processes
|
||||||
|
created by the user during his session
|
||||||
|
and from his session will be
|
||||||
|
terminated when he logs out from his
|
||||||
|
session.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>kill-user=</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Takes a boolean
|
||||||
|
argument. If true, all processes
|
||||||
|
created by the user during his session
|
||||||
|
and from his session will be
|
||||||
|
terminated after he logged out
|
||||||
|
completely. This is a weaker version
|
||||||
|
of <option>kill-session=1</option> and is
|
||||||
|
more friendly for users logged in more
|
||||||
|
than once as their processes are
|
||||||
|
terminated only on their complete
|
||||||
|
logout.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
<para>Note that setting <varname>kill-user=1</varname>
|
||||||
|
or even <varname>kill-session=1</varname> will break
|
||||||
|
tools like
|
||||||
|
<citerefentry><refentrytitle>screen</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
|
||||||
|
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Module Types Provided</title>
|
||||||
|
|
||||||
|
<para>Only <option>session</option> is provided.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Environment</title>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><varname>$XDG_SESSION_ID</varname></term>
|
||||||
|
|
||||||
|
<listitem><para>A session identifier,
|
||||||
|
suitable to be used in file names. The
|
||||||
|
string itself should be considered
|
||||||
|
opaque, although often it is just the
|
||||||
|
audit session ID as reported by
|
||||||
|
<filename>/proc/self/sessionid</filename>. Each
|
||||||
|
ID will be assigned only once during
|
||||||
|
machine uptime. It may hence be used
|
||||||
|
to uniquely label files or other
|
||||||
|
resources of this
|
||||||
|
session.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><varname>$XDG_RUNTIME_DIR</varname></term>
|
||||||
|
|
||||||
|
<listitem><para>Path to a user-private
|
||||||
|
user-writable directory that is bound
|
||||||
|
to the user login time on the
|
||||||
|
machine. It is automatically created
|
||||||
|
the first time a user logs in and
|
||||||
|
removed on his final logout. If a user
|
||||||
|
logs in twice at the same time, both
|
||||||
|
sessions will see the same
|
||||||
|
<varname>$XDG_RUNTIME_DIR</varname>
|
||||||
|
and the same contents. If a user logs
|
||||||
|
in once, then logs out again, and logs
|
||||||
|
in again, the directory contents will
|
||||||
|
have been lost in between, but
|
||||||
|
applications should not rely on this
|
||||||
|
behaviour and must be able to deal with
|
||||||
|
stale files. To store session-private
|
||||||
|
data in this directory the user should
|
||||||
|
include the value of <varname>$XDG_SESSION_ID</varname>
|
||||||
|
in the filename. This directory shall
|
||||||
|
be used for runtime file system
|
||||||
|
objects such as AF_UNIX sockets,
|
||||||
|
FIFOs, PID files and similar. It is
|
||||||
|
guaranteed that this directory is
|
||||||
|
local and offers the greatest possible
|
||||||
|
file system feature set the
|
||||||
|
operating system
|
||||||
|
provides.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Example</title>
|
||||||
|
|
||||||
|
<programlisting>#%PAM-1.0
|
||||||
|
auth required pam_unix.so
|
||||||
|
auth required pam_nologin.so
|
||||||
|
account required pam_unix.so
|
||||||
|
password required pam_unix.so
|
||||||
|
session required pam_unix.so
|
||||||
|
session required pam_loginuid.so
|
||||||
|
session required pam_systemd.so create-session=1 kill-user=1</programlisting>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>See Also</title>
|
||||||
|
<para>
|
||||||
|
<citerefentry><refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>pam_loginuid</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry>
|
|
@ -21,7 +21,7 @@
|
||||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<refentry id="systemd">
|
<refentry id="runlevel">
|
||||||
|
|
||||||
<refentryinfo>
|
<refentryinfo>
|
||||||
<title>runlevel</title>
|
<title>runlevel</title>
|
||||||
|
@ -146,6 +146,7 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
|
@ -147,12 +147,12 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_booted</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_booted</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_is_fifo</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_is_fifo</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
|
||||||
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>fprintf</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>fprintf</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
||||||
|
|
|
@ -114,8 +114,8 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
<citerefentry><refentrytitle>sd_daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>sd_daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
|
|
@ -188,9 +188,9 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
<citerefentry><refentrytitle>sd_daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_listen_fds</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
|
||||||
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -163,13 +163,13 @@
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<citerefentry><refentrytitle>sd_daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_is_fifo</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_is_fifo</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_is_socket</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_is_socket</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_is_socket_inet</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_is_socket_inet</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_is_socket_unix</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_is_socket_unix</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
|
||||||
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -267,9 +267,9 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
|
||||||
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
155
man/shutdown.xml
Normal file
155
man/shutdown.xml
Normal file
|
@ -0,0 +1,155 @@
|
||||||
|
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||||
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is part of systemd.
|
||||||
|
|
||||||
|
Copyright 2010 Lennart Poettering
|
||||||
|
|
||||||
|
systemd is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
systemd is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<refentry id="shutdown">
|
||||||
|
|
||||||
|
<refentryinfo>
|
||||||
|
<title>shutdown</title>
|
||||||
|
<productname>systemd</productname>
|
||||||
|
|
||||||
|
<authorgroup>
|
||||||
|
<author>
|
||||||
|
<contrib>Developer</contrib>
|
||||||
|
<firstname>Lennart</firstname>
|
||||||
|
<surname>Poettering</surname>
|
||||||
|
<email>lennart@poettering.net</email>
|
||||||
|
</author>
|
||||||
|
</authorgroup>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>shutdown</refentrytitle>
|
||||||
|
<manvolnum>8</manvolnum>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>shutdown</refname>
|
||||||
|
<refpurpose>Halt, power-off or reboot the machine</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>shutdown <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt">now</arg> <arg choice="opt" rep="repeat">WALL</arg></command>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Description</title>
|
||||||
|
|
||||||
|
<para><command>shutdown</command> may be used to halt,
|
||||||
|
power-off or reboot the machine.</para>
|
||||||
|
|
||||||
|
<para>The first argument should be the string
|
||||||
|
<command>now</command> which however is ignored by
|
||||||
|
this implementation. Optionally, this may be followed
|
||||||
|
by a wall message to be sent to all logged-in users
|
||||||
|
before going down.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Options</title>
|
||||||
|
|
||||||
|
<para>The following options are understood:</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--help</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Prints a short help
|
||||||
|
text and exits.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-H</option></term>
|
||||||
|
<term><option>--halt</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Halt the machine.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-P</option></term>
|
||||||
|
<term><option>--poweroff</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Power-off the
|
||||||
|
machine (the default).</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-r</option></term>
|
||||||
|
<term><option>--reboot</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Reboot the
|
||||||
|
machine.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>-h</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Equivalent to
|
||||||
|
<option>--poweroff</option>, unless
|
||||||
|
<option>--halt</option> is
|
||||||
|
specified.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--k</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Don't halt, power-off,
|
||||||
|
reboot, just write wall
|
||||||
|
message.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--no-wall</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Don't send wall
|
||||||
|
message before
|
||||||
|
halt, power-off, reboot.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Exit status</title>
|
||||||
|
|
||||||
|
<para>On success 0 is returned, a non-zero failure
|
||||||
|
code otherwise.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Notes</title>
|
||||||
|
|
||||||
|
<para>This is a legacy command available for
|
||||||
|
compatibility only.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>See Also</title>
|
||||||
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>halt</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry>
|
|
@ -50,13 +50,13 @@
|
||||||
|
|
||||||
<refsynopsisdiv>
|
<refsynopsisdiv>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>systemd-install <arg choice="opt" rep="repeat">options</arg> <arg choice="plain">enable</arg> <arg choice="opt" rep="repeat">name</arg></command>
|
<command>systemd-install <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="plain">enable</arg> <arg choice="opt" rep="repeat">NAME</arg></command>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>systemd-install <arg choice="opt" rep="repeat">options</arg> <arg choice="plain">disable</arg> <arg choice="opt" rep="repeat">name</arg></command>
|
<command>systemd-install <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="plain">disable</arg> <arg choice="opt" rep="repeat">NAME</arg></command>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>systemd-install <arg choice="opt" rep="repeat">options</arg> <arg choice="plain">test</arg> <arg choice="opt" rep="repeat">name</arg></command>
|
<command>systemd-install <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="plain">test</arg> <arg choice="opt" rep="repeat">NAME</arg></command>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
<para>The following verbs are understood:</para>
|
<para>The following commands are understood:</para>
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
@ -161,6 +161,7 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
||||||
<citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>
|
||||||
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
|
|
||||||
<refmeta>
|
<refmeta>
|
||||||
<refentrytitle>systemd</refentrytitle>
|
<refentrytitle>systemd</refentrytitle>
|
||||||
<manvolnum>8</manvolnum>
|
<manvolnum>1</manvolnum>
|
||||||
</refmeta>
|
</refmeta>
|
||||||
|
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
|
@ -49,10 +49,10 @@
|
||||||
|
|
||||||
<refsynopsisdiv>
|
<refsynopsisdiv>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>systemd <arg choice="opt" rep="repeat">options</arg></command>
|
<command>systemd <arg choice="opt" rep="repeat">OPTIONS</arg></command>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
<cmdsynopsis>
|
<cmdsynopsis>
|
||||||
<command>init <arg choice="opt" rep="repeat">options</arg></command>
|
<command>init <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">COMMAND</arg></command>
|
||||||
</cmdsynopsis>
|
</cmdsynopsis>
|
||||||
</refsynopsisdiv>
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
@ -81,7 +81,8 @@
|
||||||
|
|
||||||
<variablelist>
|
<variablelist>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>-h</option> | <option>--help</option></term>
|
<term><option>-h</option></term>
|
||||||
|
<term><option>--help</option></term>
|
||||||
|
|
||||||
<listitem><para>Prints a short help
|
<listitem><para>Prints a short help
|
||||||
text and exits.</para></listitem>
|
text and exits.</para></listitem>
|
||||||
|
@ -196,6 +197,28 @@
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Directories</title>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Signal</title>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><filename>SIGTERM</filename></term>
|
||||||
|
|
||||||
|
<listitem><para>systemd serializes its
|
||||||
|
state, reexecutes itself and
|
||||||
|
deserializes the saved state
|
||||||
|
again. This is mostly equivalent to
|
||||||
|
<command>systemctl
|
||||||
|
daemon-reexec</command>.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>Sockets and FIFOs</title>
|
<title>Sockets and FIFOs</title>
|
||||||
|
|
||||||
|
|
194
man/telinit.xml
Normal file
194
man/telinit.xml
Normal file
|
@ -0,0 +1,194 @@
|
||||||
|
<?xml version='1.0'?> <!--*-nxml-*-->
|
||||||
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is part of systemd.
|
||||||
|
|
||||||
|
Copyright 2010 Lennart Poettering
|
||||||
|
|
||||||
|
systemd is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
systemd is distributed in the hope that it will be useful, but
|
||||||
|
WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<refentry id="telinit">
|
||||||
|
|
||||||
|
<refentryinfo>
|
||||||
|
<title>telinit</title>
|
||||||
|
<productname>systemd</productname>
|
||||||
|
|
||||||
|
<authorgroup>
|
||||||
|
<author>
|
||||||
|
<contrib>Developer</contrib>
|
||||||
|
<firstname>Lennart</firstname>
|
||||||
|
<surname>Poettering</surname>
|
||||||
|
<email>lennart@poettering.net</email>
|
||||||
|
</author>
|
||||||
|
</authorgroup>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>telinit</refentrytitle>
|
||||||
|
<manvolnum>8</manvolnum>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>telinit</refname>
|
||||||
|
<refpurpose>Change SysV runlevel</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<cmdsynopsis>
|
||||||
|
<command>telinit <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">COMMAND</arg></command>
|
||||||
|
</cmdsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Description</title>
|
||||||
|
|
||||||
|
<para><command>telinit</command> may be used to change
|
||||||
|
the SysV system runlevel. Since the concept of SysV
|
||||||
|
runlevels is obsolete the runlevel requests
|
||||||
|
will be transparently translated into systemd unit
|
||||||
|
activation requests.</para>
|
||||||
|
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Options</title>
|
||||||
|
|
||||||
|
<para>The following options are understood:</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--help</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Prints a short help
|
||||||
|
text and exits.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--no-wall</option></term>
|
||||||
|
|
||||||
|
<listitem><para>Don't send wall
|
||||||
|
message before
|
||||||
|
reboot/halt/power-off.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
<para>The following commands are understood:</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>0</command></term>
|
||||||
|
|
||||||
|
<listitem><para>Power-off the
|
||||||
|
machine. This is translated into an
|
||||||
|
activation request for
|
||||||
|
<filename>poweroff.target</filename>
|
||||||
|
and is equivalent to
|
||||||
|
<command>systemctl
|
||||||
|
poweroff</command>.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>6</command></term>
|
||||||
|
|
||||||
|
<listitem><para>Reboot the
|
||||||
|
machine. This is translated into an
|
||||||
|
activation request for
|
||||||
|
<filename>reboot.target</filename> and
|
||||||
|
is equivalent to <command>systemctl
|
||||||
|
reboot</command>.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>2</command></term>
|
||||||
|
<term><command>3</command></term>
|
||||||
|
<term><command>4</command></term>
|
||||||
|
<term><command>5</command></term>
|
||||||
|
|
||||||
|
<listitem><para>Change the SysV
|
||||||
|
runlevel. This is translated into an
|
||||||
|
activation request for
|
||||||
|
<filename>runlevel2.target</filename>,
|
||||||
|
<filename>runlevel3.target</filename>,
|
||||||
|
... and is equivalent to
|
||||||
|
<command>systemctl start
|
||||||
|
runlevel2.target</command>,
|
||||||
|
<command>systemctl start
|
||||||
|
runlevel3.target</command>,
|
||||||
|
...</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>1</command></term>
|
||||||
|
<term><command>s</command></term>
|
||||||
|
<term><command>S</command></term>
|
||||||
|
|
||||||
|
<listitem><para>Change into system
|
||||||
|
rescue mode. This is translated into
|
||||||
|
an activation request for
|
||||||
|
<filename>rescue.target</filename> and
|
||||||
|
is equivalent to <command>systemctl
|
||||||
|
rescue</command>.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>q</command></term>
|
||||||
|
<term><command>Q</command></term>
|
||||||
|
|
||||||
|
<listitem><para>Reload daemon
|
||||||
|
configuration. This is equivalent to
|
||||||
|
<command>systemctl
|
||||||
|
daemon-reload</command>.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><command>u</command></term>
|
||||||
|
<term><command>U</command></term>
|
||||||
|
|
||||||
|
<listitem><para>Serialize state,
|
||||||
|
reexecute daemon and deserialize state
|
||||||
|
again. This is equivalent to
|
||||||
|
<command>systemctl
|
||||||
|
daemon-reexec</command>.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Exit status</title>
|
||||||
|
|
||||||
|
<para>On success 0 is returned, a non-zero failure
|
||||||
|
code otherwise.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Notes</title>
|
||||||
|
|
||||||
|
<para>This is a legacy command available for compatibility
|
||||||
|
only. It should not be used anymore, as the concept of
|
||||||
|
runlevels is obsolete.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>See Also</title>
|
||||||
|
<para>
|
||||||
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry>
|
Loading…
Reference in a new issue