summaryrefslogtreecommitdiff
path: root/man/systemd.path.xml
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-12-18 17:52:52 +0000
committerLuca Boccassi <luca.boccassi@microsoft.com>2021-12-18 23:17:53 +0000
commit47dba9fb091cc6fa8ae8ea1d2d6b0652ec84f765 (patch)
treee78fba787af89a002ad3a6b9a3131f46a2fd2136 /man/systemd.path.xml
parentef1aa10692ae71f4f96c5a421d7e3a132f169b4a (diff)
downloadsystemd-47dba9fb091cc6fa8ae8ea1d2d6b0652ec84f765.tar.gz
path unit: add TriggerLimitBurst= and TriggerLimitIntervalSec=
Given there's now a default for these settings, also allow users to configure them, matching socket units
Diffstat (limited to 'man/systemd.path.xml')
-rw-r--r--man/systemd.path.xml15
1 files changed, 15 insertions, 0 deletions
diff --git a/man/systemd.path.xml b/man/systemd.path.xml
index 44afba08c9..fd3d4efc2a 100644
--- a/man/systemd.path.xml
+++ b/man/systemd.path.xml
@@ -186,6 +186,21 @@
in question. Takes an access mode in octal notation. Defaults
to <option>0755</option>.</para></listitem>
</varlistentry>
+ <varlistentry>
+ <term><varname>TriggerLimitIntervalSec=</varname></term>
+ <term><varname>TriggerLimitBurst=</varname></term>
+
+ <listitem><para>Configures a limit on how often this path unit may be activated within a specific time
+ interval. The <varname>TriggerLimitIntervalSec=</varname> may be used to configure the length of the time
+ interval in the usual time units <literal>us</literal>, <literal>ms</literal>, <literal>s</literal>,
+ <literal>min</literal>, <literal>h</literal>, … and defaults to 2s (See
+ <citerefentry><refentrytitle>systemd.time</refentrytitle><manvolnum>7</manvolnum></citerefentry> for details on
+ the various time units understood). The <varname>TriggerLimitBurst=</varname> setting takes a positive integer
+ value and specifies the number of permitted activations per time interval, and defaults to 200. Set either to
+ 0 to disable any form of trigger rate limiting. If the limit is hit, the unit is placed into a failure mode,
+ and will not watch the path(s) anymore until restarted. Note that this limit is enforced before the service
+ activation is enqueued.</para></listitem>
+ </varlistentry>
</variablelist>
<xi:include href="systemd.service.xml" xpointer="shared-unit-options" />