ryantimwilson / rpms / systemd

Forked from rpms/systemd 2 months ago
Clone
52b84b
From b8af9fd65b697e9bb77a32d1a6a70367814aaed5 Mon Sep 17 00:00:00 2001
52b84b
From: Lennart Poettering <lennart@poettering.net>
52b84b
Date: Mon, 1 Apr 2019 17:30:45 +0200
52b84b
Subject: [PATCH] man: be clearer that .timer time expressions need to be reset
52b84b
 to override them
52b84b
52b84b
let's be clearer about the overriding concept for OnCalendar= settings.
52b84b
52b84b
Prompted by this thread:
52b84b
52b84b
https://lists.freedesktop.org/archives/systemd-devel/2019-March/042351.html
52b84b
(cherry picked from commit 58031d99c6320855b86f4890baa9165597e3d841)
52b84b
52b84b
Resolves: #1816908
52b84b
---
52b84b
 man/systemd.timer.xml | 31 ++++++++++++++++++-------------
52b84b
 1 file changed, 18 insertions(+), 13 deletions(-)
52b84b
52b84b
diff --git a/man/systemd.timer.xml b/man/systemd.timer.xml
52b84b
index 44b257c745..ebc1df89f1 100644
52b84b
--- a/man/systemd.timer.xml
52b84b
+++ b/man/systemd.timer.xml
52b84b
@@ -125,12 +125,12 @@
52b84b
         to when the unit the timer is activating was last
52b84b
         deactivated.</para>
52b84b
 
52b84b
-        <para>Multiple directives may be combined of the same and of
52b84b
-        different types. For example, by combining
52b84b
-        <varname>OnBootSec=</varname> and
52b84b
-        <varname>OnUnitActiveSec=</varname>, it is possible to define
52b84b
-        a timer that elapses in regular intervals and activates a
52b84b
-        specific service each time.</para>
52b84b
+        <para>Multiple directives may be combined of the same and of different types, in which case the timer
52b84b
+        unit will trigger whenever any of the specified timer expressions elapse. For example, by combining
52b84b
+        <varname>OnBootSec=</varname> and <varname>OnUnitActiveSec=</varname>, it is possible to define a
52b84b
+        timer that elapses in regular intervals and activates a specific service each time. Moreover, both
52b84b
+        monotonic time expressions and <varname>OnCalendar=</varname> calendar expressions may be combined in
52b84b
+        the same timer unit.</para>
52b84b
 
52b84b
         <para>The arguments to the directives are time spans
52b84b
         configured in seconds. Example: "OnBootSec=50" means 50s after
52b84b
@@ -145,13 +145,12 @@
52b84b
         and the configured unit is started. This is not the case for
52b84b
         timers defined in the other directives.</para>
52b84b
 
52b84b
-        <para>These are monotonic timers, independent of wall-clock
52b84b
-        time and timezones. If the computer is temporarily suspended,
52b84b
-        the monotonic clock stops too.</para>
52b84b
+        <para>These are monotonic timers, independent of wall-clock time and timezones. If the computer is
52b84b
+        temporarily suspended, the monotonic clock pauses, too.</para>
52b84b
 
52b84b
-        <para>If the empty string is assigned to any of these options,
52b84b
-        the list of timers is reset, and all prior assignments will
52b84b
-        have no effect.</para>
52b84b
+        <para>If the empty string is assigned to any of these options, the list of timers is reset (both
52b84b
+        monotonic timers and <varname>OnCalendar=</varname> timers, see below), and all prior assignments
52b84b
+        will have no effect.</para>
52b84b
 
52b84b
         <para>Note that timers do not necessarily expire at the
52b84b
         precise time configured with these settings, as they are
52b84b
@@ -175,7 +174,13 @@
52b84b
         the <varname>AccuracySec=</varname> setting
52b84b
         below.</para>
52b84b
 
52b84b
-       <para>May be specified more than once.</para></listitem>
52b84b
+        <para>May be specified more than once, in which case the timer unit will trigger whenever any of the
52b84b
+        specified expressions elapse. Moreover calendar timers and monotonic timers (see above) may be
52b84b
+        combined within the same timer unit.</para>
52b84b
+
52b84b
+        <para>If the empty string is assigned to any of these options, the list of timers is reset (both
52b84b
+        <varname>OnCalendar=</varname> timers and monotonic timers, see above), and all prior assignments
52b84b
+        will have no effect.</para></listitem>
52b84b
       </varlistentry>
52b84b
 
52b84b
       <varlistentry>