]>
Commit | Line | Data |
---|---|---|
3802a3d3 | 1 | <?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*--> |
d868475a | 2 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" |
12b42c76 | 3 | "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> |
d868475a ZJS |
4 | |
5 | <!-- | |
b975b0d5 | 6 | This file is part of systemd. |
d868475a | 7 | |
b975b0d5 | 8 | Copyright 2013 Zbigniew Jędrzejewski-Szmek |
d868475a | 9 | |
b975b0d5 ZJS |
10 | systemd is free software; you can redistribute it and/or modify it |
11 | under the terms of the GNU Lesser General Public License as published by | |
12 | the Free Software Foundation; either version 2.1 of the License, or | |
13 | (at your option) any later version. | |
d868475a | 14 | |
b975b0d5 ZJS |
15 | systemd is distributed in the hope that it will be useful, but |
16 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | Lesser General Public License for more details. | |
d868475a | 19 | |
b975b0d5 ZJS |
20 | You should have received a copy of the GNU Lesser General Public License |
21 | along with systemd; If not, see <http://www.gnu.org/licenses/>. | |
d868475a ZJS |
22 | --> |
23 | ||
24 | <refentry id="systemd.slice"> | |
25 | <refentryinfo> | |
26 | <title>systemd.slice</title> | |
27 | <productname>systemd</productname> | |
28 | ||
29 | <authorgroup> | |
30 | <author> | |
31 | <contrib>Developer</contrib> | |
32 | <firstname>Lennart</firstname> | |
33 | <surname>Poettering</surname> | |
34 | <email>lennart@poettering.net</email> | |
35 | </author> | |
36 | </authorgroup> | |
37 | </refentryinfo> | |
38 | ||
39 | <refmeta> | |
40 | <refentrytitle>systemd.slice</refentrytitle> | |
41 | <manvolnum>5</manvolnum> | |
42 | </refmeta> | |
43 | ||
44 | <refnamediv> | |
45 | <refname>systemd.slice</refname> | |
46 | <refpurpose>Slice unit configuration</refpurpose> | |
47 | </refnamediv> | |
48 | ||
49 | <refsynopsisdiv> | |
50 | <para><filename><replaceable>slice</replaceable>.slice</filename></para> | |
51 | </refsynopsisdiv> | |
52 | ||
53 | <refsect1> | |
54 | <title>Description</title> | |
55 | ||
56 | <para>A unit configuration file whose name ends in | |
847ae0ae | 57 | <literal>.slice</literal> encodes information about a slice which |
299a5507 | 58 | is a concept for hierarchically managing resources of a group of |
d868475a | 59 | processes. This management is performed by creating a node in the |
3fde5f30 | 60 | Linux Control Group (cgroup) tree. Units that manage processes |
299a5507 ME |
61 | (primarily scope and service units) may be assigned to a specific |
62 | slice. For each slice, certain resource limits may be set that | |
3fde5f30 | 63 | apply to all processes of all units contained in that |
299a5507 | 64 | slice. Slices are organized hierarchically in a tree. The name of |
3fde5f30 LP |
65 | the slice encodes the location in the tree. The name consists of a |
66 | dash-separated series of names, which describes the path to the | |
67 | slice from the root slice. The root slice is named, | |
847ae0ae LP |
68 | <filename>-.slice</filename>. Example: |
69 | <filename>foo-bar.slice</filename> is a slice that is located | |
70 | within <filename>foo.slice</filename>, which in turn is located in | |
71 | the root slice <filename>-.slice</filename>. | |
d868475a ZJS |
72 | </para> |
73 | ||
fbce1139 | 74 | <para>By default, service and scope units are placed in |
847ae0ae LP |
75 | <filename>system.slice</filename>, virtual machines and containers |
76 | registered with | |
77 | <citerefentry><refentrytitle>systemd-machined</refentrytitle><manvolnum>1</manvolnum></citerefentry> | |
78 | are found in <filename>machine.slice</filename>, and user sessions | |
79 | handled by | |
80 | <citerefentry><refentrytitle>systemd-logind</refentrytitle><manvolnum>1</manvolnum></citerefentry> | |
81 | in <filename>user.slice</filename>. See | |
82 | <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
83 | for more information.</para> | |
84 | ||
d868475a ZJS |
85 | <para>See |
86 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry> | |
87 | for the common options of all unit configuration | |
88 | files. The common configuration items are configured | |
89 | in the generic [Unit] and [Install] sections. The | |
90 | slice specific configuration options are configured in | |
3fde5f30 | 91 | the [Slice] section. Currently, only generic resource control settings |
d868475a | 92 | as described in |
c4e87748 | 93 | <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry> are allowed. |
d868475a ZJS |
94 | </para> |
95 | ||
b6f011c1 EV |
96 | <para>See the <ulink |
97 | url="http://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/">New | |
98 | Control Group Interfaces</ulink> for an introduction on how to make | |
99 | use of slice units from programs.</para> | |
c129bd5d LP |
100 | </refsect1> |
101 | ||
102 | <refsect1> | |
103 | <title>Automatic Dependencies</title> | |
104 | ||
105 | <para>Slice units automatically gain dependencies of type | |
106 | <varname>After=</varname> and <varname>Requires=</varname> on | |
107 | their immediate parent slice unit.</para> | |
b6f011c1 | 108 | |
d868475a ZJS |
109 | <para>Unless <varname>DefaultDependencies=false</varname> |
110 | is used, slice units will implicitly have dependencies of | |
111 | type <varname>Conflicts=</varname> and | |
112 | <varname>Before=</varname> on | |
113 | <filename>shutdown.target</filename>. These ensure | |
114 | that slice units are removed prior to system | |
115 | shutdown. Only slice units involved with early boot or | |
116 | late system shutdown should disable this option. | |
117 | </para> | |
118 | </refsect1> | |
119 | ||
120 | <refsect1> | |
121 | <title>See Also</title> | |
122 | <para> | |
123 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
124 | <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>, | |
3fde5f30 | 125 | <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
d868475a | 126 | <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
847ae0ae LP |
127 | <citerefentry><refentrytitle>systemd.scope</refentrytitle><manvolnum>5</manvolnum></citerefentry>, |
128 | <citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>, | |
129 | <citerefentry><refentrytitle>systemd.directives</refentrytitle><manvolnum>7</manvolnum></citerefentry> | |
d868475a ZJS |
130 | </para> |
131 | </refsect1> | |
132 | ||
133 | </refentry> |