]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd.scope.xml
tree-wide: drop license boilerplate
[thirdparty/systemd.git] / man / systemd.scope.xml
CommitLineData
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<!--
572eb058
ZJS
6 SPDX-License-Identifier: LGPL-2.1+
7
5de0ccff 8 This file is part of systemd.
d868475a 9
5de0ccff 10 Copyright 2013 Zbigniew Jędrzejewski-Szmek
d868475a
ZJS
11-->
12
13<refentry id="systemd.scope">
14 <refentryinfo>
15 <title>systemd.scope</title>
16 <productname>systemd</productname>
17
18 <authorgroup>
19 <author>
20 <contrib>Developer</contrib>
21 <firstname>Lennart</firstname>
22 <surname>Poettering</surname>
23 <email>lennart@poettering.net</email>
24 </author>
25 </authorgroup>
26 </refentryinfo>
27
28 <refmeta>
29 <refentrytitle>systemd.scope</refentrytitle>
30 <manvolnum>5</manvolnum>
31 </refmeta>
32
33 <refnamediv>
34 <refname>systemd.scope</refname>
35 <refpurpose>Scope unit configuration</refpurpose>
36 </refnamediv>
37
38 <refsynopsisdiv>
39 <para><filename><replaceable>scope</replaceable>.scope</filename></para>
40 </refsynopsisdiv>
41
42 <refsect1>
43 <title>Description</title>
44
9365b048
LP
45 <para>Scope units are not configured via unit configuration files,
46 but are only created programmatically using the bus interfaces of
47 systemd. They are named similar to filenames. A unit whose name
48 ends in <literal>.scope</literal> refers to a scope unit. Scopes
fbce1139 49 units manage a set of system processes. Unlike service units, scope
9365b048
LP
50 units manage externally created processes, and do not fork off
51 processes on its own.</para>
d868475a 52
9365b048 53 <para>The main purpose of scope units is grouping worker processes
847ae0ae 54 of a system service for organization and for managing resources.</para>
9365b048
LP
55
56 <para><command>systemd-run <option>--scope</option></command> may
57 be used to easily launch a command in a new scope unit from the
58 command line.</para>
d868475a 59
ea021cc3 60 <para>See the <ulink
28a0ad81 61 url="https://www.freedesktop.org/wiki/Software/systemd/ControlGroupInterface/">New
72f4d966 62 Control Group Interfaces</ulink> for an introduction on how to make
ea021cc3 63 use of scope units from programs.</para>
c129bd5d
LP
64 </refsect1>
65
66 <refsect1>
45f09f93 67 <title>Implicit Dependencies</title>
c129bd5d 68
45f09f93 69 <para>Implicit dependencies may be added as result of
c129bd5d
LP
70 resource control parameters as documented in
71 <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
45f09f93 72 </refsect1>
c129bd5d 73
45f09f93
JL
74 <refsect1>
75 <title>Default Dependencies</title>
76
77 <para>The following dependencies are added unless
78 <varname>DefaultDependencies=no</varname> is set:</para>
79
80 <itemizedlist>
81 <listitem><para>Scope units will automatically have dependencies of
82 type <varname>Conflicts=</varname> and
83 <varname>Before=</varname> on
84 <filename>shutdown.target</filename>. These ensure
85 that scope units are removed prior to system
86 shutdown. Only scope units involved with early boot or
87 late system shutdown should disable
88 <varname>DefaultDependencies=</varname> option.</para></listitem>
89 </itemizedlist>
d868475a
ZJS
90 </refsect1>
91
92 <refsect1>
93 <title>See Also</title>
94 <para>
95 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
96 <citerefentry><refentrytitle>systemd-run</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
97 <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
3fde5f30 98 <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
d868475a
ZJS
99 <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
100 <citerefentry><refentrytitle>systemd.directives</refentrytitle><manvolnum>7</manvolnum></citerefentry>.
101 </para>
102 </refsect1>
103
104</refentry>