]> git.proxmox.com Git - pmg-docs.git/commitdiff
pmgqm: add example for systemd.timer edit
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 13 Dec 2022 11:45:48 +0000 (12:45 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 30 Dec 2022 14:16:30 +0000 (15:16 +0100)
The resetting of OnCalendar can be a bit confusing for users, who are
not familiar with the intricacies of systemd overrides.
Add a simple example to address a common use-case, and point to the
relevant man pages for more details.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
pmgqm.adoc

index 046c91ea5a5980f28f322a9ad9a046b6d4a3b4fd..2a73d9f0e95cf3ec3ab2966696e36c6404afc7ca 100644 (file)
@@ -44,6 +44,18 @@ The timer can be edited with the command below:
 systemctl edit pmgspamreport.timer
 ----
 
+Keep in mind that just adding another `OnCalendar` event will cause the report
+to be sent out additionally at the specified time, if you want to prevent the
+default mail at 00:05, you need to reset the `OnCalendar` setting - for example
+to only send out the mails at 06:00:
+----
+[Timer]
+OnCalendar=
+OnCalendar=06:00
+----
+
+For details see the systemd man pages: `systemd.unit(5)`, `systemd.timer(5)`.
+
 ifdef::manvolnum[]
 include::pmg-copyright.adoc[]
 endif::manvolnum[]