From: Stoiko Ivanov <s.ivanov@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-docs] pmgqm: add example for systemd.timer edit
Date: Tue, 13 Dec 2022 12:45:48 +0100 [thread overview]
Message-ID: <20221213114548.6504-1-s.ivanov@proxmox.com> (raw)
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 | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/pmgqm.adoc b/pmgqm.adoc
index 046c91e..2a73d9f 100644
--- a/pmgqm.adoc
+++ b/pmgqm.adoc
@@ -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[]
--
2.30.2
next reply other threads:[~2022-12-13 11:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-13 11:45 Stoiko Ivanov [this message]
2022-12-30 14:25 ` [pmg-devel] applied: " Thomas Lamprecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221213114548.6504-1-s.ivanov@proxmox.com \
--to=s.ivanov@proxmox.com \
--cc=pmg-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox