summaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2019-06-12 09:45:26 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2019-10-28 09:44:31 +0100
commit9ed7de605d7c1a3290e544e92ea5de6141c26bbc (patch)
tree2f9331649c36deec0a112f6001b46ce43b3275e4 /man
parentscope: Refactor timer handling on coldplug (diff)
downloadsystemd-9ed7de605d7c1a3290e544e92ea5de6141c26bbc.tar.xz
systemd-9ed7de605d7c1a3290e544e92ea5de6141c26bbc.zip
scope: Support RuntimeMaxSec= directive in scope units
Just as `RuntimeMaxSec=` is supported for service units, add support for it to scope units. This will gracefully kill a scope after the timeout expires from the moment the scope enters the running state. This could be used for time-limited login sessions, for example. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #12035
Diffstat (limited to 'man')
-rw-r--r--man/systemd.scope.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/man/systemd.scope.xml b/man/systemd.scope.xml
index 503a480dd0..daf3554db2 100644
--- a/man/systemd.scope.xml
+++ b/man/systemd.scope.xml
@@ -78,6 +78,31 @@
</refsect1>
<refsect1>
+ <title>Options</title>
+
+ <para>Scope files may include a <literal>[Scope]</literal>
+ section, which carries information about the scope and the
+ units it contains. A number of options that may be used in
+ this section are shared with other unit types. These options are
+ documented in
+ <citerefentry><refentrytitle>systemd.kill</refentrytitle><manvolnum>5</manvolnum></citerefentry>
+ and
+ <citerefentry><refentrytitle>systemd.resource-control</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
+ The options specific to the <literal>[Scope]</literal> section
+ of scope units are the following:</para>
+
+ <variablelist class='unit-directives'>
+ <varlistentry>
+ <term><varname>RuntimeMaxSec=</varname></term>
+
+ <listitem><para>Configures a maximum time for the scope to run. If this is used and the scope has been
+ active for longer than the specified time it is terminated and put into a failure state. Pass
+ <literal>infinity</literal> (the default) to configure no runtime limit.</para></listitem>
+ </varlistentry>
+ </variablelist>
+ </refsect1>
+
+ <refsect1>
<title>See Also</title>
<para>
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,