175 lines
4.9 KiB
HTML
175 lines
4.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of SYSTEMD.SLICE</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>SYSTEMD.SLICE</H1>
|
|
Section: systemd.slice (5)<BR>Updated: <BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
systemd.slice - Slice unit configuration
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
|
|
<I>slice</I>.slice
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
|
|
A unit configuration file whose name ends in
|
|
".slice"
|
|
encodes information about a slice unit. A slice unit is a concept for hierarchically managing resources of a group of processes. This management is performed by creating a node in the Linux Control Group (cgroup) tree. Units that manage processes (primarily scope and service units) may be assigned to a specific slice. For each slice, certain resource limits may be set that apply to all processes of all units contained in that slice. Slices are organized hierarchically in a tree. The name of the slice encodes the location in the tree. The name consists of a dash-separated series of names, which describes the path to the slice from the root slice. The root slice is named
|
|
-.slice. Example:
|
|
foo-bar.slice
|
|
is a slice that is located within
|
|
foo.slice, which in turn is located in the root slice
|
|
-.slice.
|
|
<P>
|
|
|
|
Note that slice units cannot be templated, nor is possible to add multiple names to a slice unit by creating additional symlinks to its unit file.
|
|
<P>
|
|
|
|
By default, service and scope units are placed in
|
|
system.slice, virtual machines and containers registered with
|
|
<B><A HREF="/cgi-bin/man/man2html?8+systemd-machined">systemd-machined</A></B>(8)
|
|
are found in
|
|
machine.slice, and user sessions handled by
|
|
<B><A HREF="/cgi-bin/man/man2html?8+systemd-logind">systemd-logind</A></B>(8)
|
|
in
|
|
user.slice. See
|
|
<B><A HREF="/cgi-bin/man/man2html?7+systemd.special">systemd.special</A></B>(7)
|
|
for more information.
|
|
<P>
|
|
|
|
See
|
|
<B><A HREF="/cgi-bin/man/man2html?5+systemd.unit">systemd.unit</A></B>(5)
|
|
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 resource control settings as described in
|
|
<B><A HREF="/cgi-bin/man/man2html?5+systemd.resource-control">systemd.resource-control</A></B>(5)
|
|
are allowed.
|
|
<P>
|
|
|
|
See the
|
|
m[blue]<B>New Control Group Interfaces</B>m[]<FONT SIZE="-2">[1]</FONT>
|
|
for an introduction on how to make use of slice units from programs.
|
|
<A NAME="lbAE"> </A>
|
|
<H2>AUTOMATIC DEPENDENCIES</H2>
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H3>Implicit Dependencies</H3>
|
|
|
|
<P>
|
|
|
|
The following dependencies are implicitly added:
|
|
<P>
|
|
<DL COMPACT><DT id="1"><DD>
|
|
•
|
|
|
|
|
|
Slice units automatically gain dependencies of type
|
|
<I>After=</I>
|
|
and
|
|
<I>Requires=</I>
|
|
on their immediate parent slice unit.
|
|
</DL>
|
|
|
|
<A NAME="lbAG"> </A>
|
|
<H3>Default Dependencies</H3>
|
|
|
|
<P>
|
|
|
|
The following dependencies are added unless
|
|
<I>DefaultDependencies=no</I>
|
|
is set:
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
•
|
|
|
|
|
|
Slice units will automatically have dependencies of type
|
|
<I>Conflicts=</I>
|
|
and
|
|
<I>Before=</I>
|
|
on
|
|
shutdown.target. These ensure that slice units are removed prior to system shutdown. Only slice units involved with late system shutdown should disable
|
|
<I>DefaultDependencies=</I>
|
|
option.
|
|
</DL>
|
|
|
|
<A NAME="lbAH"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+systemd">systemd</A></B>(1),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+systemd.unit">systemd.unit</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+systemd.resource-control">systemd.resource-control</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+systemd.service">systemd.service</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?5+systemd.scope">systemd.scope</A></B>(5),
|
|
<B><A HREF="/cgi-bin/man/man2html?7+systemd.special">systemd.special</A></B>(7),
|
|
<B><A HREF="/cgi-bin/man/man2html?7+systemd.directives">systemd.directives</A></B>(7)
|
|
<A NAME="lbAI"> </A>
|
|
<H2>NOTES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="3"> 1.<DD>
|
|
New Control Group Interfaces
|
|
<DL COMPACT><DT id="4"><DD>
|
|
<A HREF="https://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/">https://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/</A>
|
|
</DL>
|
|
|
|
<P>
|
|
</DL>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="8"><A HREF="#lbAE">AUTOMATIC DEPENDENCIES</A><DD>
|
|
<DL>
|
|
<DT id="9"><A HREF="#lbAF">Implicit Dependencies</A><DD>
|
|
<DT id="10"><A HREF="#lbAG">Default Dependencies</A><DD>
|
|
</DL>
|
|
<DT id="11"><A HREF="#lbAH">SEE ALSO</A><DD>
|
|
<DT id="12"><A HREF="#lbAI">NOTES</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:06 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|