naccyde / rpms / systemd

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