systemd.exec.xml revision 8d53b4534a5923721b5f1e9dd7e8f4a903d02d51
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose<?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose This file is part of systemd.
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose Copyright 2010 Lennart Poettering
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose systemd is free software; you can redistribute it and/or modify it
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose under the terms of the GNU General Public License as published by
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose the Free Software Foundation; either version 2 of the License, or
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose (at your option) any later version.
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose systemd is distributed in the hope that it will be useful, but
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose WITHOUT ANY WARRANTY; without even the implied warranty of
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose General Public License for more details.
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose You should have received a copy of the GNU General Public License
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose along with systemd; If not, see <http://www.gnu.org/licenses/>.
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <refentryinfo>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <authorgroup>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose </authorgroup>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose </refentryinfo>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <refnamediv>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <refpurpose>systemd execution environment configuration</refpurpose>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose </refnamediv>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <refsynopsisdiv>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose </refsynopsisdiv>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <para>Unit configuration files for services, sockets,
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose mount points and swap devices share a subset of
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose configuration options which define the execution
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose environment of spawned processes.</para>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <para>This man page lists the configuration options
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose shared by these four unit types. See
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose for the common options of all unit configuration
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <citerefentry><refentrytitle>systemd.socket</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <citerefentry><refentrytitle>systemd.swap</refentrytitle><manvolnum>5</manvolnum></citerefentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <citerefentry><refentrytitle>systemd.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose for more information on the specific unit
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose configuration files. The execution specific
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose configuration options are configured in the [Service],
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose [Socket], [Mount] resp. [Swap] section, depending on the unit
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose type.</para>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <variablelist>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <term><varname>WorkingDirectory=</varname></term>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose directory path. Sets the working
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose directory for executed
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose directory path. Sets the root
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose directory for executed processes, with
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <citerefentry><refentrytitle>chroot</refentrytitle><manvolnum>2</manvolnum></citerefentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose system call. If this is used it must
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose be ensured that the process and all
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose its auxiliary files are available in
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose resp. group the processes are executed
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose as. Takes a single user resp. group
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose name or ID as argument. If no group is
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose set the default group of the user is
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <term><varname>SupplementaryGroups=</varname></term>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose Unix groups the processes are executed
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose as. This takes a space separated list
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose of group names or IDs. This option may
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose be specified more than once in which
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose case all listed groups are set as
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose supplementary groups. This option does
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose not override but extends the list of
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose supplementary groups configured in the
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose system group database for the
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose level (scheduling priority) for
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose executed processes. Takes an integer
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose between -20 (highest priority) and 19
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose (lowest priority). See
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <citerefentry><refentrytitle>setpriority</refentrytitle><manvolnum>2</manvolnum></citerefentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose level for the Out-Of-Memory killer for
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose executed processes. Takes an integer
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose between -1000 (to disable OOM killing
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose for this process) and 1000 (to make
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose killing of this process under memory
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose pressure very likely). See <ulink
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose url="http://www.kernel.org/doc/Documentation/filesystems/proc.txt">proc.txt</ulink>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <varlistentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <term><varname>IOSchedulingClass=</varname></term>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose class for executed processes. Takes an
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose integer between 0 and 3 or one of the
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <citerefentry><refentrytitle>ioprio_set</refentrytitle><manvolnum>2</manvolnum></citerefentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <term><varname>IOSchedulingPriority=</varname></term>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose priority for executed processes. Takes
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose an integer between 0 (highest
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose priority) and 7 (lowest priority). The
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose available priorities depend on the
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose selected IO scheduling class (see
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <citerefentry><refentrytitle>ioprio_set</refentrytitle><manvolnum>2</manvolnum></citerefentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <varlistentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <term><varname>CPUSchedulingPolicy=</varname></term>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose scheduling policy for executed
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose processes. Takes one of
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <citerefentry><refentrytitle>sched_setscheduler</refentrytitle><manvolnum>2</manvolnum></citerefentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <term><varname>CPUSchedulingPriority=</varname></term>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose scheduling priority for executed
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose processes. Takes an integer between 1
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose (lowest priority) and 99 (highest
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose priority). The available priority
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose range depends on the selected CPU
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose scheduling policy (see above). See
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <citerefentry><refentrytitle>sched_setscheduler</refentrytitle><manvolnum>2</manvolnum></citerefentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose </varlistentry>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose <varlistentry>
576ad637181b80d39a4e136c9afbf34c57f76156Sumit Bose <term><varname>CPUSchedulingResetOnFork=</varname></term>
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose argument. If true elevated CPU
a0ab15ceb80290db80c2052520830a95390de385Sumit Bose scheduling priorities and policies
<citerefentry><refentrytitle>sched_setscheduler</refentrytitle><manvolnum>2</manvolnum></citerefentry>
<citerefentry><refentrytitle>sched_setaffinity</refentrytitle><manvolnum>2</manvolnum></citerefentry>
i.e. all read attempts by the process
i.e. everything written to it will be
<citerefentry><refentrytitle>dmesg</refentrytitle><manvolnum>1</manvolnum></citerefentry>. <option>journal</option>
<citerefentry><refentrytitle>systemd-journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
url="http://www.kernel.org/doc/Documentation/cgroups/cgroups.txt">cgroups.txt</ulink>.</para></listitem>
to be persistant, i.e. systemd will
url="http://www.freedesktop.org/wiki/Software/systemd/PaxControlGroups">PaxControlGroups</ulink>.</para></listitem>
url="http://www.kernel.org/doc/Documentation/scheduler/sched-design-CFS.txt">sched-design-CFS.txt</ulink>.</para></listitem>
url="http://www.kernel.org/doc/Documentation/cgroups/memory.txt">memory.txt</ulink>.</para></listitem>
url="http://www.kernel.org/doc/Documentation/cgroups/devices.txt">devices.txt</ulink>.</para></listitem>
url="http://www.kernel.org/doc/Documentation/cgroups/blkio-controller.txt">blkio-controller.txt</ulink>.</para></listitem>
url="http://www.kernel.org/doc/Documentation/cgroups/blkio-controller.txt">blkio-controller.txt</ulink>.</para></listitem>
<citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,