234N/A<?
xml version='1.0'?>
<!--*-nxml-*--> 234N/A<!
DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 234N/AThis file is part of systemd. 234N/ACopyright 2013 Zbigniew Jędrzejewski-Szmek 234N/Asystemd is free software; you can redistribute it and/or modify it 234N/Aunder the terms of the GNU Lesser General Public License as published by 234N/Athe Free Software Foundation; either version 2.1 of the License, or 234N/A(at your option) any later version. 234N/Asystemd is distributed in the hope that it will be useful, but 234N/AWITHOUT ANY WARRANTY; without even the implied warranty of 234N/AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 234N/ALesser General Public License for more details. 2790N/AYou should have received a copy of the GNU Lesser General Public License 234N/A <
productname>systemd</
productname>
234N/A <
contrib>Developer</
contrib>
844N/A <
firstname>Lennart</
firstname>
844N/A <
surname>Poettering</
surname>
234N/A <
email>lennart@poettering.net</
email>
234N/A <
manvolnum>5</
manvolnum>
2790N/A <
refpurpose>Slice unit configuration</
refpurpose>
2790N/A <
para><
filename><
replaceable>slice</
replaceable>.slice</
filename></
para>
2790N/A <
para>A unit configuration file whose name ends in
2790N/A <
literal>.slice</
literal> encodes information about a slice which
2790N/A is a concept for hierarchially managing resources of a group of
234N/A processes. This management is performed by creating a node in the
234N/A control group tree. Units that manage processes (primarilly scope
234N/A and service units) may be assigned to a specific slice. For each
234N/A slice, certain resource limits may the be set that apply to all
234N/A processes of all units contained in that slice. Slices are
2790N/A organized hierarchially in a tree. The name of the slice encodes
234N/A the location in the tree. The name consists of a dash-separated
234N/A series of names, which describes the path to the slice from the
234N/A root slice. The root slice is named,
within <
filename>
foo.slice</
filename>, which in turn is located in
the root slice <
filename>
-.slice</
filename>.
<
para>By default, service and scope units are placed in
<
filename>
system.slice</
filename>, virtual machines and containers
<
citerefentry><
refentrytitle>systemd-machined</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>
are found in <
filename>
machine.slice</
filename>, and user sessions
<
citerefentry><
refentrytitle>systemd-logind</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>
<
citerefentry><
refentrytitle>
systemd.special</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>
for more information.</
para>
<
citerefentry><
refentrytitle>
systemd.unit</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>
for the common options of all unit configuration
files. The common configuration items are configured
in the generic [Unit] and [Install] sections. The
slice specific configuration options are configured in
the [Slice] section. Currently, only generic cgroup settings
<
citerefentry><
refentrytitle>
systemd.cgroup</
refentrytitle><
manvolnum>7</
manvolnum></
citerefentry> are allowed.
<
para>Unless <
varname>DefaultDependencies=false</
varname>
is used, slice units will implicitly have dependencies of
type <
varname>Conflicts=</
varname> and
<
varname>Before=</
varname> on
that slice units are removed prior to system
shutdown. Only slice units involved with early boot or
late system shutdown should disable this option.
<
citerefentry><
refentrytitle>systemd</
refentrytitle><
manvolnum>1</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>
systemd.unit</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>
systemd.cgroup</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>
systemd.service</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>
systemd.scope</
refentrytitle><
manvolnum>5</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>
systemd.special</
refentrytitle><
manvolnum>7</
manvolnum></
citerefentry>,
<
citerefentry><
refentrytitle>
systemd.directives</
refentrytitle><
manvolnum>7</
manvolnum></
citerefentry>