systemd.xml revision d450b6f2a9dd8a7fb14e9f8f771ddd70de7afc5e
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack This file is part of systemd.
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack Copyright 2010 Lennart Poettering
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack systemd is free software; you can redistribute it and/or modify it
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack under the terms of the GNU Lesser General Public License as published by
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack the Free Software Foundation; either version 2.1 of the License, or
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack (at your option) any later version.
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack systemd is distributed in the hope that it will be useful, but
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack WITHOUT ANY WARRANTY; without even the implied warranty of
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack Lesser General Public License for more details.
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack You should have received a copy of the GNU Lesser General Public License
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack along with systemd; If not, see <http://www.gnu.org/licenses/>.
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <refentryinfo>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <authorgroup>
b1d4f8e154bf61b5de1b27461ef8e9c8c5e838a1Lennart Poettering </authorgroup>
b1d4f8e154bf61b5de1b27461ef8e9c8c5e838a1Lennart Poettering </refentryinfo>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <refnamediv>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <refpurpose>systemd system and service manager</refpurpose>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </refnamediv>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <refsynopsisdiv>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <cmdsynopsis>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <command>systemd <arg choice="opt" rep="repeat">OPTIONS</arg></command>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </cmdsynopsis>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <cmdsynopsis>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <command>init <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="req">COMMAND</arg></command>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </cmdsynopsis>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </refsynopsisdiv>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <para>systemd is a system and service manager for
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack Linux operating systems. When run as first process on
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack boot (as PID 1), it acts as init system that brings
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack up and maintains userspace services.</para>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <para>For compatibility with SysV, if systemd is called
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack as <command>init</command> and a PID that is not
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack 1, it will execute <command>telinit</command> and pass
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack all command line arguments unmodified. That means
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <command>init</command> and <command>telinit</command>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack are mostly equivalent when invoked from normal login sessions. See
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <citerefentry><refentrytitle>telinit</refentrytitle><manvolnum>8</manvolnum></citerefentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack for more information.</para>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <para>When run as system instance, systemd interprets
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack the configuration file
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack for more information.</para>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <para>The following options are understood:</para>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <variablelist>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack sequence, dump it and exit. This is an
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack option useful for debugging
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <term><option>--dump-configuration-items</option></term>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack configuration items. This outputs a
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack terse but complete list of
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack configuration items understood in unit
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack activate on startup. If not specified,
c2a23db0b91faca3795099fd4b41587bac170ff7Daniel Mack <filename>default.target</filename>.</para></listitem>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack tell systemd to run a
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack system instance, even if the process ID is
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack not 1, i.e. systemd is not run as init process.
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack running a user instance even if the process
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack Normally it should not be necessary to
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack pass these options, as systemd
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack automatically detects the mode it is
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack started in. These options are hence of
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack little use except for debugging. Note
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack that it is not supported booting and
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack maintaining a full system with systemd
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack mode, but PID not 1. In practice,
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack only useful in conjunction with
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack crash. This switch has no effect when
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack crash. This switch has no effect when
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack when spawning processes. This switch
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack has no effect when run as user
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack </varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack <varlistentry>
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack status information while booting. This
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack switch has no effect when run as user
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack instance. Takes a boolean argument
e2fa5721c3ee5ea400b99a6463e8c1c257e20415Daniel Mack which may be omitted which is
level or the well-known <citerefentry><refentrytitle>syslog</refentrytitle><manvolnum>3</manvolnum></citerefentry>
i.e. between the two states (these states are called
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.target</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.device</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.automount</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.snapshot</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.timer</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
system. They are described in <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.path</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.slice</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.scope</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
graphical.target). However, it is at the discretion of
is consistent (i.e. whether the ordering of all units
url="http://0pointer.de/blog/projects/systemd.html">Original
url="http://www.freedesktop.org/wiki/Software/systemd/Generators">Generators
tool can handle both global (i.e. for
<varname>$SYSTEMD_LOG_TARGET</varname>, <varname>$SYSTEMD_LOG_LEVEL</varname>, <varname>$SYSTEMD_LOG_COLOR</varname>, <varname>$SYSTEMD_LOG_LOCATION</varname>
<citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry>.</para>
<citerefentry><refentrytitle>sd_notify</refentrytitle><manvolnum>3</manvolnum></citerefentry>.</para></listitem>
<citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
<citerefentry><refentrytitle>kernel-command-line</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
<citerefentry><refentrytitle>systemd.directives</refentrytitle><manvolnum>7</manvolnum></citerefentry>