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