1 <?xml version='1.0'?> <!--*-nxml-*-->
2 <?xml-stylesheet type="text/xsl" href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"?>
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
7 This file is part of systemd.
9 Copyright 2013 Zbigniew Jędrzejewski-Szmek
11 systemd is free software; you can redistribute it and/or modify it
12 under the terms of the GNU Lesser General Public License as published by
13 the Free Software Foundation; either version 2.1 of the License, or
14 (at your option) any later version.
16 systemd is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
21 You should have received a copy of the GNU Lesser General Public License
22 along with systemd; If not, see <http://www.gnu.org/licenses/>.
25 <refentry id="systemd.slice">
27 <title>systemd.slice</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
41 <refentrytitle>systemd.slice</refentrytitle>
42 <manvolnum>5</manvolnum>
46 <refname>systemd.slice</refname>
47 <refpurpose>Slice unit configuration</refpurpose>
51 <para><filename><replaceable>slice</replaceable>.slice</filename></para>
55 <title>Description</title>
57 <para>A unit configuration file whose name ends in
58 <literal>.slice</literal> encodes information about a slice
59 created by systemd to manage resources used by a certain group of
60 processes. This management is performed by creating a node in the
61 control group tree. Those processes are part of different units,
62 usually <literal>.service</literal> units (see
63 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>).
67 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>
68 for the common options of all unit configuration
69 files. The common configuration items are configured
70 in the generic [Unit] and [Install] sections. The
71 slice specific configuration options are configured in
72 the [Slice] section. Currently, only generic cgroup settings
74 <citerefentry><refentrytitle>systemd.cgroup</refentrytitle><manvolnum>7</manvolnum></citerefentry> are allowed.
77 <para>Unless <varname>DefaultDependencies=false</varname>
78 is used, slice units will implicitly have dependencies of
79 type <varname>Conflicts=</varname> and
80 <varname>Before=</varname> on
81 <filename>shutdown.target</filename>. These ensure
82 that slice units are removed prior to system
83 shutdown. Only slice units involved with early boot or
84 late system shutdown should disable this option.
89 <title>See Also</title>
91 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
92 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
93 <citerefentry><refentrytitle>systemd.cgroup</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
94 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
95 <citerefentry><refentrytitle>systemd.directives</refentrytitle><manvolnum>7</manvolnum></citerefentry>.